{"type": "func", "start": 5370983888, "end": 5370984427, "name": "GJBaseGameLayer::processMoveActionsStep", "pseudocode": "// \n// GJBaseGameLayer::processMoveActionsStep from 0x14022b5d0 to 0x14022b7eb (539 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x140235be2\n// > GJBaseGameLayer::update @ 0x140238388\n// > <???> @ 0x140680894\n// > <???> @ 0x1406808c8\n// > <???> @ 0x1406cdb90\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::processMoveActionsStep(GJBaseGameLayer *a1, float a2, bool a3)\n{\n  double v3; // xmm0_8\n  int v4; // edi\n  std::_Vector_val<std::_Simple_types<DynamicObjectAction>>::pointer Mylast; // r11\n  std::_Vector_val<std::_Simple_types<DynamicObjectAction>>::pointer i; // r10\n  GJEffectManager *m_effectManager; // r8\n  unsigned int m_targetGroupID; // r9d\n  unsigned __int64 v11; // rcx\n  std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>>>>::pointer Myfirst; // rdx\n  std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr Myhead; // r8\n  __int64 v14; // rcx\n  __int64 v15; // rax\n  __int64 v16; // rcx\n  __int64 v17; // rcx\n  __int64 v18; // r14\n  std::_Simple_types<GameObject *>::value_type v19; // rbx\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  struct cocos2d::CCPoint v21; // [rsp+50h] [rbp+8h] BYREF\n\n  v4 = 0;\n  *(_QWORD *)&a1->m_unked0 = 0;\n  *(_QWORD *)&a1->m_unked8 = 0;\n  Mylast = a1->m_gameState.m_dynamicMoveActions._Mypair._Myval2._Mylast;\n  for ( i = a1->m_gameState.m_dynamicMoveActions._Mypair._Myval2._Myfirst; i != Mylast; ++i )\n  {\n    m_effectManager = a1->m_effectManager;\n    m_targetGroupID = i->m_gameObject1->m_targetGroupID;\n    v11 = (0x100000001B3LL\n         * (((unsigned __int64)m_targetGroupID >> 24)\n          ^ (0x100000001B3LL\n           * (BYTE2(m_targetGroupID)\n            ^ (0x100000001B3LL\n             * ((0x100000001B3LL * ((unsigned __int8)m_targetGroupID ^ 0xCBF29CE484222325uLL)) ^ BYTE1(m_targetGroupID)))))))\n        & m_effectManager->m_unkMap618._Mask;\n    Myfirst = m_effectManager->m_unkMap618._Vec._Mypair._Myval2._Myfirst;\n    Myhead = m_effectManager->m_unkMap618._List._Mypair._Myval2._Myhead;\n    v14 = 2 * v11;\n    v15 = *((_QWORD *)Myfirst + v14 + 1);\n    if ( (std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr)v15 != Myhead )\n    {\n      v16 = *((_QWORD *)Myfirst + v14);\n      if ( m_targetGroupID == *(_DWORD *)(v15 + 16) )\n        goto LABEL_8;\n      while ( v15 != v16 )\n      {\n        v15 = *(_QWORD *)(v15 + 8);\n        if ( m_targetGroupID == *(_DWORD *)(v15 + 16) )\n          goto LABEL_8;\n      }\n    }\n    v15 = 0;\nLABEL_8:\n    if ( v15 )\n    {\n      if ( (std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr)v15 != Myhead )\n      {\n        v17 = *(_QWORD *)(v15 + 24);\n        if ( v17 )\n          *(_BYTE *)(v17 + 209) = 1;\n      }\n    }\n  }\n  GJBaseGameLayer::processDynamicObjectActions(a1, 1, a2);\n  GJBaseGameLayer::processTransformActions(a1, a3);\n  GJBaseGameLayer::processRotationActions(a1);\n  GJBaseGameLayer::processDynamicObjectActions(a1, 0, a2);\n  GJBaseGameLayer::processMoveActions(a1);\n  GJBaseGameLayer::processPlayerFollowActions(a1, a2);\n  GJBaseGameLayer::processAdvancedFollowActions(a1, a2);\n  GJBaseGameLayer::processFollowActions(a1);\n  GJBaseGameLayer::processAreaActions(a1, a2, a3);\n  if ( a1->m_isEditor && a1->m_disabledObjectsCount > 0 )\n  {\n    v18 = 0;\n    do\n    {\n      v19 = a1->m_disabledObjects._Mypair._Myval2._Myfirst[v18];\n      v3 = cocos2d::CCPoint::CCPoint(*(float *)&v3, v19->m_positionX);\n      cocos2d::CCSprite::setPosition(v19, &v21);\n      m_colorSprite = v19->m_colorSprite;\n      if ( m_colorSprite )\n      {\n        if ( !v19->m_colorSpriteLocked )\n          m_colorSprite->setPosition_0(m_colorSprite, &v21);\n      }\n      ++v4;\n      ++v18;\n    }\n    while ( v4 < a1->m_disabledObjectsCount );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processMoveActionsStep from 0x14022b5d0 to 0x14022b7eb (539 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x140235be2\n; > GJBaseGameLayer::update @ 0x140238388\n; > <???> @ 0x140680894\n; > <???> @ 0x1406808c8\n; > <???> @ 0x1406cdb90\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_10], rbx                                              ; +0x0, 0x14022b5d0\npush    rsi                                                            ; +0x5, 0x14022b5d5\npush    rdi                                                            ; +0x6, 0x14022b5d6\npush    r14                                                            ; +0x7, 0x14022b5d7\nsub     rsp, 30h                                                       ; +0x9, 0x14022b5d9\nxor     edi, edi                                                       ; +0xd, 0x14022b5dd\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0xf, 0x14022b5df\nmov     [rcx+0ED8h], rdi                                               ; +0x14, 0x14022b5e4\nmovzx   ebx, r8b                                                       ; +0x1b, 0x14022b5eb\nmov     [rcx+0EE0h], rdi                                               ; +0x1f, 0x14022b5ef\nmovaps  xmm6, xmm1                                                     ; +0x26, 0x14022b5f6\nmov     r11, [rcx+738h]                                                ; +0x29, 0x14022b5f9\nmov     rsi, rcx                                                       ; +0x30, 0x14022b600\nmov     r10, [rcx+730h]                                                ; +0x33, 0x14022b603\ncmp     r10, r11                                                       ; +0x3a, 0x14022b60a\njz      loc_14022B6F0                                                  ; +0x3d, 0x14022b60d\nmov     [rsp+48h+arg_8], rbp                                           ; +0x43, 0x14022b613\nmov     r14, 0CBF29CE484222325h                                        ; +0x48, 0x14022b618\nmov     rbp, 100000001B3h                                              ; +0x52, 0x14022b622\nnop     dword ptr [rax+00h]                                            ; +0x5c, 0x14022b62c\nmov     rax, [r10]                                                     ; +0x60, 0x14022b630\nmov     r8, [rsi+950h]                                                 ; +0x63, 0x14022b633\nmov     r9d, [rax+5C8h]                                                ; +0x6a, 0x14022b63a\nmov     eax, r9d                                                       ; +0x71, 0x14022b641\nshr     eax, 8                                                         ; +0x74, 0x14022b644\nmovzx   edx, al                                                        ; +0x77, 0x14022b647\nmovzx   eax, r9b                                                       ; +0x7a, 0x14022b64a\nxor     rax, r14                                                       ; +0x7e, 0x14022b64e\nimul    rax, rbp                                                       ; +0x81, 0x14022b651\nxor     rdx, rax                                                       ; +0x85, 0x14022b655\nmov     eax, r9d                                                       ; +0x88, 0x14022b658\nimul    rdx, rbp                                                       ; +0x8b, 0x14022b65b\nshr     eax, 10h                                                       ; +0x8f, 0x14022b65f\nmovzx   ecx, al                                                        ; +0x92, 0x14022b662\nmov     eax, r9d                                                       ; +0x95, 0x14022b665\nxor     rdx, rcx                                                       ; +0x98, 0x14022b668\nshr     rax, 18h                                                       ; +0x9b, 0x14022b66b\nmov     rcx, [r8+700h]                                                 ; +0x9f, 0x14022b66f\nimul    rdx, rbp                                                       ; +0xa6, 0x14022b676\nxor     rdx, rax                                                       ; +0xaa, 0x14022b67a\nimul    rdx, rbp                                                       ; +0xad, 0x14022b67d\nand     rcx, rdx                                                       ; +0xb1, 0x14022b681\nmov     rdx, [r8+6E8h]                                                 ; +0xb4, 0x14022b684\nmov     r8, [r8+6D8h]                                                  ; +0xbb, 0x14022b68b\nadd     rcx, rcx                                                       ; +0xc2, 0x14022b692\nmov     rax, [rdx+rcx*8+8]                                             ; +0xc5, 0x14022b695\ncmp     rax, r8                                                        ; +0xca, 0x14022b69a\njz      short loc_14022B6C1                                            ; +0xcd, 0x14022b69d\nmov     rcx, [rdx+rcx*8]                                               ; +0xcf, 0x14022b69f\ncmp     r9d, [rax+10h]                                                 ; +0xd3, 0x14022b6a3\njz      short loc_14022B6C4                                            ; +0xd7, 0x14022b6a7\nnop     dword ptr [rax+00000000h]                                      ; +0xd9, 0x14022b6a9\ncmp     rax, rcx                                                       ; +0xe0, 0x14022b6b0\njz      short loc_14022B6C1                                            ; +0xe3, 0x14022b6b3\nmov     rax, [rax+8]                                                   ; +0xe5, 0x14022b6b5\ncmp     r9d, [rax+10h]                                                 ; +0xe9, 0x14022b6b9\njnz     short loc_14022B6B0                                            ; +0xed, 0x14022b6bd\njmp     short loc_14022B6C4                                            ; +0xef, 0x14022b6bf\nmov     rax, rdi                                                       ; +0xf1, 0x14022b6c1\ntest    rax, rax                                                       ; +0xf4, 0x14022b6c4\njz      short loc_14022B6DE                                            ; +0xf7, 0x14022b6c7\ncmp     rax, r8                                                        ; +0xf9, 0x14022b6c9\njz      short loc_14022B6DE                                            ; +0xfc, 0x14022b6cc\nmov     rcx, [rax+18h]                                                 ; +0xfe, 0x14022b6ce\ntest    rcx, rcx                                                       ; +0x102, 0x14022b6d2\njz      short loc_14022B6DE                                            ; +0x105, 0x14022b6d5\nmov     byte ptr [rcx+0D1h], 1                                         ; +0x107, 0x14022b6d7\nadd     r10, 60h ; '`'                                                 ; +0x10e, 0x14022b6de\ncmp     r10, r11                                                       ; +0x112, 0x14022b6e2\njnz     loc_14022B630                                                  ; +0x115, 0x14022b6e5\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x11b, 0x14022b6eb\nmovaps  xmm2, xmm6                                                     ; +0x120, 0x14022b6f0\nmov     edx, 1                                                         ; +0x123, 0x14022b6f3\nmov     rcx, rsi                                                       ; +0x128, 0x14022b6f8\ncall    GJBaseGameLayer__processDynamicObjectActions                   ; +0x12b, 0x14022b6fb\nmovzx   edx, bl                                                        ; +0x130, 0x14022b700\nmov     rcx, rsi                                                       ; +0x133, 0x14022b703\ncall    GJBaseGameLayer__processTransformActions                       ; +0x136, 0x14022b706\nmov     rcx, rsi                                                       ; +0x13b, 0x14022b70b\ncall    GJBaseGameLayer__processRotationActions                        ; +0x13e, 0x14022b70e\nmovaps  xmm2, xmm6                                                     ; +0x143, 0x14022b713\nxor     edx, edx                                                       ; +0x146, 0x14022b716\nmov     rcx, rsi                                                       ; +0x148, 0x14022b718\ncall    GJBaseGameLayer__processDynamicObjectActions                   ; +0x14b, 0x14022b71b\nmov     rcx, rsi                                                       ; +0x150, 0x14022b720\ncall    GJBaseGameLayer__processMoveActions                            ; +0x153, 0x14022b723\nmovaps  xmm1, xmm6                                                     ; +0x158, 0x14022b728\nmov     rcx, rsi                                                       ; +0x15b, 0x14022b72b\ncall    GJBaseGameLayer__processPlayerFollowActions                    ; +0x15e, 0x14022b72e\nmovaps  xmm1, xmm6                                                     ; +0x163, 0x14022b733\nmov     rcx, rsi                                                       ; +0x166, 0x14022b736\ncall    GJBaseGameLayer__processAdvancedFollowActions                  ; +0x169, 0x14022b739\nmov     rcx, rsi                                                       ; +0x16e, 0x14022b73e\ncall    GJBaseGameLayer__processFollowActions                          ; +0x171, 0x14022b741\nmovzx   r8d, bl                                                        ; +0x176, 0x14022b746\nmovaps  xmm1, xmm6                                                     ; +0x17a, 0x14022b74a\nmov     rcx, rsi                                                       ; +0x17d, 0x14022b74d\ncall    GJBaseGameLayer__processAreaActions                            ; +0x180, 0x14022b750\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x185, 0x14022b755\ncmp     [rsi+309Ch], dil                                               ; +0x18a, 0x14022b75a\njz      short loc_14022B7DD                                            ; +0x191, 0x14022b761\ncmp     [rsi+0EDCh], edi                                               ; +0x193, 0x14022b763\njle     short loc_14022B7DD                                            ; +0x199, 0x14022b769\nmov     r14, rdi                                                       ; +0x19b, 0x14022b76b\nxchg    ax, ax                                                         ; +0x19e, 0x14022b76e\nmov     rax, [rsi+0DF8h]                                               ; +0x1a0, 0x14022b770\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x1a7, 0x14022b777\nmov     rbx, [r14+rax]                                                 ; +0x1ac, 0x14022b77c\nmovsd   xmm2, qword ptr [rbx+3C0h]                                     ; +0x1b0, 0x14022b780\nmovsd   xmm1, qword ptr [rbx+3B8h]                                     ; +0x1b8, 0x14022b788\ncvtpd2ps xmm2, xmm2                                                    ; +0x1c0, 0x14022b790\ncvtpd2ps xmm1, xmm1                                                    ; +0x1c4, 0x14022b794\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c8, 0x14022b798\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x1ce, 0x14022b79e\nmov     rcx, rbx                                                       ; +0x1d3, 0x14022b7a3\ncall    cs:__imp_?setPosition@CCSprite@cocos2d@@UEAAXAEBVCCPoint@2@@Z; cocos2d::CCSprite::setPosition(cocos2d::CCPoint const &) ; +0x1d6, 0x14022b7a6\nmov     rcx, [rbx+380h]                                                ; +0x1dc, 0x14022b7ac\ntest    rcx, rcx                                                       ; +0x1e3, 0x14022b7b3\njz      short loc_14022B7CF                                            ; +0x1e6, 0x14022b7b6\ncmp     byte ptr [rbx+36Ah], 0                                         ; +0x1e8, 0x14022b7b8\njnz     short loc_14022B7CF                                            ; +0x1ef, 0x14022b7bf\nmov     rax, [rcx]                                                     ; +0x1f1, 0x14022b7c1\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x1f4, 0x14022b7c4\ncall    qword ptr [rax+0B8h]                                           ; +0x1f9, 0x14022b7c9\ninc     edi                                                            ; +0x1ff, 0x14022b7cf\nadd     r14, 8                                                         ; +0x201, 0x14022b7d1\ncmp     edi, [rsi+0EDCh]                                               ; +0x205, 0x14022b7d5\njl      short loc_14022B770                                            ; +0x20b, 0x14022b7db\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x20d, 0x14022b7dd\nadd     rsp, 30h                                                       ; +0x212, 0x14022b7e2\npop     r14                                                            ; +0x216, 0x14022b7e6\npop     rdi                                                            ; +0x218, 0x14022b7e8\npop     rsi                                                            ; +0x219, 0x14022b7e9\nretn                                                                   ; +0x21a, 0x14022b7ea", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x140235be2", "GJBaseGameLayer::update @ 0x140238388", "<???> @ 0x140680894", "<???> @ 0x1406808c8", "<???> @ 0x1406cdb90"], "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"}