{"type": "func", "start": 5370999008, "end": 5370999549, "name": "GJBaseGameLayer::processAdvancedFollowActions", "pseudocode": "// \n// GJBaseGameLayer::processAdvancedFollowActions from 0x14022f0e0 to 0x14022f2fd (541 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processMoveActionsStep @ 0x14022b739\n// > <???> @ 0x1406cde3c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::processAdvancedFollowActions(GJBaseGameLayer *a1, float a2)\n{\n  std::vector<AdvancedFollowInstance> *p_m_advanceFollowInstances; // rsi\n  std::_Vector_val<std::_Simple_types<AdvancedFollowInstance>>::pointer *p_Mylast; // r14\n  std::_Vector_val<std::_Simple_types<AdvancedFollowInstance>>::pointer Mylast; // rbp\n  AdvancedFollowInstance *Myfirst; // rbx\n  char m_started; // r8\n  std::_Vector_val<std::_Simple_types<AdvancedFollowInstance>>::pointer v8; // rdx\n  std::_Vector_val<std::_Simple_types<AdvancedFollowInstance>>::pointer v9; // rax\n  std::_Vector_val<std::_Simple_types<AdvancedFollowInstance>>::pointer i; // rcx\n  std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>::_Nodeptr Myhead; // rax\n  _QWORD *j; // rbx\n  _QWORD **v13; // rcx\n  std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>>>>::pointer v14; // r8\n  unsigned __int64 v15; // rdx\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>, std::_Iterator_base0>::_Nodeptr Ptr; // r9\n\n  p_m_advanceFollowInstances = &a1->m_gameState.m_advanceFollowInstances;\n  p_Mylast = &a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast;\n  if ( a1->m_gameState.m_unkBool27 )\n  {\n    sub_140252440(\n      p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst,\n      *p_Mylast,\n      *p_Mylast - p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst,\n      sub_140205270);\n    a1->m_gameState.m_unkBool27 = 0;\n  }\n  Mylast = p_m_advanceFollowInstances->_Mypair._Myval2._Mylast;\n  Myfirst = p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst;\n  if ( p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst != Mylast )\n  {\n    while ( Myfirst->m_finished )\n    {\n      if ( Myfirst->m_doStart )\n      {\n        Myfirst->m_doStart = 0;\n        m_started = 1;\n        goto LABEL_8;\n      }\nLABEL_9:\n      if ( ++Myfirst == Mylast )\n      {\n        p_Mylast = &a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast;\n        p_m_advanceFollowInstances = &a1->m_gameState.m_advanceFollowInstances;\n        goto LABEL_11;\n      }\n    }\n    m_started = Myfirst->m_started;\nLABEL_8:\n    GJBaseGameLayer::processAdvancedFollowAction(a1, Myfirst, m_started, a2 * 240.0);\n    goto LABEL_9;\n  }\nLABEL_11:\n  v8 = *p_Mylast;\n  v9 = p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst;\n  if ( p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst != *p_Mylast )\n  {\n    do\n    {\n      if ( v9->m_started )\n        break;\n      ++v9;\n    }\n    while ( v9 != v8 );\n    if ( v9 != v8 )\n    {\n      for ( i = v9 + 1; i != v8; ++i )\n      {\n        if ( !i->m_started )\n        {\n          *(_OWORD *)&v9->m_gameObject = *(_OWORD *)&i->m_gameObject;\n          *(_OWORD *)&v9->m_controlId = *(_OWORD *)&i->m_controlId;\n          ++v9;\n        }\n      }\n    }\n  }\n  if ( v9 != a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast )\n    a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast = v9;\n  Myhead = a1->m_gameState.m_gameObjectPhysics._List._Mypair._Myval2._Myhead;\n  for ( j = *(_QWORD **)Myhead;\n        j != (_QWORD *)Myhead;\n        Myhead = a1->m_gameState.m_gameObjectPhysics._List._Mypair._Myval2._Myhead )\n  {\n    if ( *((_DWORD *)j + 15) >= (signed int)a1->m_gameState.m_commandIndex )\n    {\n      j = (_QWORD *)*j;\n    }\n    else\n    {\n      v13 = (_QWORD **)j;\n      v14 = a1->m_gameState.m_gameObjectPhysics._Vec._Mypair._Myval2._Myfirst;\n      v15 = 2\n          * ((0x100000001B3LL\n            * (*((unsigned __int8 *)j + 19)\n             ^ (0x100000001B3LL\n              * (*((unsigned __int8 *)j + 18)\n               ^ (0x100000001B3LL\n                * (*((unsigned __int8 *)j + 17)\n                 ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL))))))))\n           & a1->m_gameState.m_gameObjectPhysics._Mask);\n      Ptr = v14[2\n              * ((0x100000001B3LL\n                * (*((unsigned __int8 *)j + 19)\n                 ^ (0x100000001B3LL\n                  * (*((unsigned __int8 *)j + 18)\n                   ^ (0x100000001B3LL\n                    * (*((unsigned __int8 *)j + 17)\n                     ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL))))))))\n               & a1->m_gameState.m_gameObjectPhysics._Mask)]._Ptr;\n      if ( (_QWORD *)v14[2\n                       * ((0x100000001B3LL\n                         * (*((unsigned __int8 *)j + 19)\n                          ^ (0x100000001B3LL\n                           * (*((unsigned __int8 *)j + 18)\n                            ^ (0x100000001B3LL\n                             * (*((unsigned __int8 *)j + 17)\n                              ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL))))))))\n                        & a1->m_gameState.m_gameObjectPhysics._Mask)\n                       + 1]._Ptr == j )\n      {\n        if ( Ptr == (std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>, std::_Iterator_base0>::_Nodeptr)j )\n          v14[2\n            * ((0x100000001B3LL\n              * (*((unsigned __int8 *)j + 19)\n               ^ (0x100000001B3LL\n                * (*((unsigned __int8 *)j + 18)\n                 ^ (0x100000001B3LL\n                  * (*((unsigned __int8 *)j + 17)\n                   ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL))))))))\n             & a1->m_gameState.m_gameObjectPhysics._Mask)]._Ptr = Myhead;\n        else\n          Myhead = (std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>::_Nodeptr)j[1];\n        v14[v15 + 1]._Ptr = Myhead;\n      }\n      else if ( Ptr == (std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>, std::_Iterator_base0>::_Nodeptr)j )\n      {\n        v14[2\n          * ((0x100000001B3LL\n            * (*((unsigned __int8 *)j + 19)\n             ^ (0x100000001B3LL\n              * (*((unsigned __int8 *)j + 18)\n               ^ (0x100000001B3LL\n                * (*((unsigned __int8 *)j + 17)\n                 ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL))))))))\n           & a1->m_gameState.m_gameObjectPhysics._Mask)] = *(std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>>>>::pointer)j;\n      }\n      j = (_QWORD *)*j;\n      --a1->m_gameState.m_gameObjectPhysics._List._Mypair._Myval2._Mysize;\n      *v13[1] = j;\n      j[1] = v13[1];\n      j_j_free(v13);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processAdvancedFollowActions from 0x14022f0e0 to 0x14022f2fd (541 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processMoveActionsStep @ 0x14022b739\n; > <???> @ 0x1406cde3c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14022f0e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14022f0e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14022f0ea\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14022f0ef\npush    r14                                                            ; +0x14, 0x14022f0f4\nsub     rsp, 30h                                                       ; +0x16, 0x14022f0f6\ncmp     byte ptr [rcx+710h], 0                                         ; +0x1a, 0x14022f0fa\nlea     rsi, [rcx+718h]                                                ; +0x21, 0x14022f101\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x28, 0x14022f108\nlea     r14, [rcx+720h]                                                ; +0x2d, 0x14022f10d\nmovaps  xmm6, xmm1                                                     ; +0x34, 0x14022f114\nmov     rdi, rcx                                                       ; +0x37, 0x14022f117\nmulss   xmm6, cs:dword_140623408                                       ; +0x3a, 0x14022f11a\njz      short loc_14022F147                                            ; +0x42, 0x14022f122\nmov     rdx, [r14]                                                     ; +0x44, 0x14022f124\nlea     r9, sub_140205270                                              ; +0x47, 0x14022f127\nmov     rcx, [rsi]                                                     ; +0x4e, 0x14022f12e\nmov     r8, rdx                                                        ; +0x51, 0x14022f131\nsub     r8, rcx                                                        ; +0x54, 0x14022f134\nsar     r8, 5                                                          ; +0x57, 0x14022f137\ncall    sub_140252440                                                  ; +0x5b, 0x14022f13b\nmov     byte ptr [rdi+710h], 0                                         ; +0x60, 0x14022f140\nmov     rbp, [rsi+8]                                                   ; +0x67, 0x14022f147\nmov     rbx, [rsi]                                                     ; +0x6b, 0x14022f14b\ncmp     rbx, rbp                                                       ; +0x6e, 0x14022f14e\njz      short loc_14022F192                                            ; +0x71, 0x14022f151\ncmp     byte ptr [rbx+1Ch], 0                                          ; +0x73, 0x14022f153\njnz     short loc_14022F160                                            ; +0x77, 0x14022f157\nmovzx   r8d, byte ptr [rbx+1Eh]                                        ; +0x79, 0x14022f159\njmp     short loc_14022F16D                                            ; +0x7e, 0x14022f15e\ncmp     byte ptr [rbx+1Dh], 0                                          ; +0x80, 0x14022f160\njz      short loc_14022F17B                                            ; +0x84, 0x14022f164\nmov     byte ptr [rbx+1Dh], 0                                          ; +0x86, 0x14022f166\nmov     r8b, 1                                                         ; +0x8a, 0x14022f16a\nmovaps  xmm3, xmm6                                                     ; +0x8d, 0x14022f16d\nmov     rdx, rbx                                                       ; +0x90, 0x14022f170\nmov     rcx, rdi                                                       ; +0x93, 0x14022f173\ncall    GJBaseGameLayer__processAdvancedFollowAction                   ; +0x96, 0x14022f176\nadd     rbx, 20h ; ' '                                                 ; +0x9b, 0x14022f17b\ncmp     rbx, rbp                                                       ; +0x9f, 0x14022f17f\njnz     short loc_14022F153                                            ; +0xa2, 0x14022f182\nlea     r14, [rdi+720h]                                                ; +0xa4, 0x14022f184\nlea     rsi, [rdi+718h]                                                ; +0xab, 0x14022f18b\nmov     rdx, [r14]                                                     ; +0xb2, 0x14022f192\nmov     rax, [rsi]                                                     ; +0xb5, 0x14022f195\ncmp     rax, rdx                                                       ; +0xb8, 0x14022f198\njz      short loc_14022F1E1                                            ; +0xbb, 0x14022f19b\nnop     dword ptr [rax]                                                ; +0xbd, 0x14022f19d\ncmp     byte ptr [rax+1Eh], 0                                          ; +0xc0, 0x14022f1a0\njnz     short loc_14022F1AF                                            ; +0xc4, 0x14022f1a4\nadd     rax, 20h ; ' '                                                 ; +0xc6, 0x14022f1a6\ncmp     rax, rdx                                                       ; +0xca, 0x14022f1aa\njnz     short loc_14022F1A0                                            ; +0xcd, 0x14022f1ad\ncmp     rax, rdx                                                       ; +0xcf, 0x14022f1af\njz      short loc_14022F1E1                                            ; +0xd2, 0x14022f1b2\nlea     rcx, [rax+20h]                                                 ; +0xd4, 0x14022f1b4\ncmp     rcx, rdx                                                       ; +0xd8, 0x14022f1b8\njz      short loc_14022F1E1                                            ; +0xdb, 0x14022f1bb\nnop     dword ptr [rax]                                                ; +0xdd, 0x14022f1bd\ncmp     byte ptr [rcx+1Eh], 0                                          ; +0xe0, 0x14022f1c0\njnz     short loc_14022F1D8                                            ; +0xe4, 0x14022f1c4\nmovups  xmm0, xmmword ptr [rcx]                                        ; +0xe6, 0x14022f1c6\nmovups  xmmword ptr [rax], xmm0                                        ; +0xe9, 0x14022f1c9\nmovups  xmm1, xmmword ptr [rcx+10h]                                    ; +0xec, 0x14022f1cc\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xf0, 0x14022f1d0\nadd     rax, 20h ; ' '                                                 ; +0xf4, 0x14022f1d4\nadd     rcx, 20h ; ' '                                                 ; +0xf8, 0x14022f1d8\ncmp     rcx, rdx                                                       ; +0xfc, 0x14022f1dc\njnz     short loc_14022F1C0                                            ; +0xff, 0x14022f1df\ncmp     rax, [rdi+720h]                                                ; +0x101, 0x14022f1e1\njz      short loc_14022F1F1                                            ; +0x108, 0x14022f1e8\nmov     [rdi+720h], rax                                                ; +0x10a, 0x14022f1ea\nmov     rax, [rdi+480h]                                                ; +0x111, 0x14022f1f1\nmov     rbx, [rax]                                                     ; +0x118, 0x14022f1f8\ncmp     rbx, rax                                                       ; +0x11b, 0x14022f1fb\njz      loc_14022F2DD                                                  ; +0x11e, 0x14022f1fe\nmov     rbp, 0CBF29CE484222325h                                        ; +0x124, 0x14022f204\nmov     rsi, 100000001B3h                                              ; +0x12e, 0x14022f20e\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x138, 0x14022f218\nmov     ecx, [rdi+3E0h]                                                ; +0x140, 0x14022f220\ncmp     [rbx+3Ch], ecx                                                 ; +0x146, 0x14022f226\njge     loc_14022F2CA                                                  ; +0x149, 0x14022f229\nmovzx   edx, byte ptr [rbx+11h]                                        ; +0x14f, 0x14022f22f\nmov     rcx, rbx; Block                                                ; +0x153, 0x14022f233\nmovzx   r8d, byte ptr [rbx+10h]                                        ; +0x156, 0x14022f236\nxor     r8, rbp                                                        ; +0x15b, 0x14022f23b\nimul    r8, rsi                                                        ; +0x15e, 0x14022f23e\nxor     r8, rdx                                                        ; +0x162, 0x14022f242\nmovzx   edx, byte ptr [rbx+12h]                                        ; +0x165, 0x14022f245\nimul    r8, rsi                                                        ; +0x169, 0x14022f249\nxor     r8, rdx                                                        ; +0x16d, 0x14022f24d\nmovzx   edx, byte ptr [rbx+13h]                                        ; +0x170, 0x14022f250\nimul    r8, rsi                                                        ; +0x174, 0x14022f254\nxor     r8, rdx                                                        ; +0x178, 0x14022f258\nmov     rdx, [rdi+4A8h]                                                ; +0x17b, 0x14022f25b\nimul    r8, rsi                                                        ; +0x182, 0x14022f262\nand     rdx, r8                                                        ; +0x186, 0x14022f266\nmov     r8, [rdi+490h]                                                 ; +0x189, 0x14022f269\nadd     rdx, rdx                                                       ; +0x190, 0x14022f270\nmov     r9, [r8+rdx*8]                                                 ; +0x193, 0x14022f273\ncmp     [r8+rdx*8+8], rbx                                              ; +0x197, 0x14022f277\njnz     short loc_14022F299                                            ; +0x19c, 0x14022f27c\ncmp     r9, rbx                                                        ; +0x19e, 0x14022f27e\njnz     short loc_14022F28E                                            ; +0x1a1, 0x14022f281\nmov     [r8+rdx*8], rax                                                ; +0x1a3, 0x14022f283\nmov     [r8+rdx*8+8], rax                                              ; +0x1a7, 0x14022f287\njmp     short loc_14022F2A5                                            ; +0x1ac, 0x14022f28c\nmov     rax, [rbx+8]                                                   ; +0x1ae, 0x14022f28e\nmov     [r8+rdx*8+8], rax                                              ; +0x1b2, 0x14022f292\njmp     short loc_14022F2A5                                            ; +0x1b7, 0x14022f297\ncmp     r9, rbx                                                        ; +0x1b9, 0x14022f299\njnz     short loc_14022F2A5                                            ; +0x1bc, 0x14022f29c\nmov     rax, [rbx]                                                     ; +0x1be, 0x14022f29e\nmov     [r8+rdx*8], rax                                                ; +0x1c1, 0x14022f2a1\nmov     rbx, [rbx]                                                     ; +0x1c5, 0x14022f2a5\nmov     edx, 48h ; 'H'                                                 ; +0x1c8, 0x14022f2a8\ndec     qword ptr [rdi+488h]                                           ; +0x1cd, 0x14022f2ad\nmov     rax, [rcx+8]                                                   ; +0x1d4, 0x14022f2b4\nmov     [rax], rbx                                                     ; +0x1d8, 0x14022f2b8\nmov     rax, [rcx+8]                                                   ; +0x1db, 0x14022f2bb\nmov     [rbx+8], rax                                                   ; +0x1df, 0x14022f2bf\ncall    j_j_free                                                       ; +0x1e3, 0x14022f2c3\njmp     short loc_14022F2CD                                            ; +0x1e8, 0x14022f2c8\nmov     rbx, [rbx]                                                     ; +0x1ea, 0x14022f2ca\nmov     rax, [rdi+480h]                                                ; +0x1ed, 0x14022f2cd\ncmp     rbx, rax                                                       ; +0x1f4, 0x14022f2d4\njnz     loc_14022F220                                                  ; +0x1f7, 0x14022f2d7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1fd, 0x14022f2dd\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x202, 0x14022f2e2\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x207, 0x14022f2e7\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x20c, 0x14022f2ec\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x211, 0x14022f2f1\nadd     rsp, 30h                                                       ; +0x216, 0x14022f2f6\npop     r14                                                            ; +0x21a, 0x14022f2fa\nretn                                                                   ; +0x21c, 0x14022f2fc", "xrefs": ["GJBaseGameLayer::processMoveActionsStep @ 0x14022b739", "<???> @ 0x1406cde3c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}