{"type": "func", "start": 5372068384, "end": 5372068939, "name": "GJBaseGameLayer::processMoveActionsStep", "pseudocode": "// \n// GJBaseGameLayer::processMoveActionsStep from 0x140334220 to 0x14033444b (555 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x14033e966\n// > GJBaseGameLayer::update @ 0x140341095\n// > <???> @ 0x1408b6ae8\n// > <???> @ 0x1408b6b1c\n// > <???> @ 0x14091f814\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:33 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::processMoveActionsStep(__int64 a1, float a2, unsigned __int8 a3)\n{\n  int v3; // ebx\n  __int64 v6; // rdi\n  __int64 v7; // r10\n  _QWORD *v8; // rdx\n  unsigned int v9; // r8d\n  __int64 v10; // r11\n  __int64 v11; // rcx\n  __int64 v12; // rax\n  __int64 v13; // rcx\n  __int64 v14; // rcx\n  __int64 v15; // r14\n  __int64 v16; // rdi\n  __int64 v17; // rcx\n  char v18; // [rsp+50h] [rbp+8h] BYREF\n\n  v3 = 0;\n  *(_QWORD *)(a1 + 3832) = 0;\n  *(_QWORD *)(a1 + 3840) = 0;\n  v6 = *(_QWORD *)(a1 + 1848);\n  v7 = *(_QWORD *)(a1 + 1840);\n  if ( v7 != v6 )\n  {\n    while ( 1 )\n    {\n      v8 = *(_QWORD **)(a1 + 2408);\n      v9 = *(_DWORD *)(*(_QWORD *)v7 + 1480LL);\n      v10 = v8[220];\n      v11 = v8[222];\n      v12 = *(_QWORD *)(v11\n                      + 16\n                      * (v8[225]\n                       & (0x100000001B3LL\n                        * (((unsigned __int64)v9 >> 24)\n                         ^ (0x100000001B3LL\n                          * (BYTE2(v9)\n                           ^ (0x100000001B3LL\n                            * ((0x100000001B3LL * ((unsigned __int8)v9 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v9))))))))\n                      + 8);\n      if ( v12 == v10 )\n        goto LABEL_7;\n      v13 = *(_QWORD *)(v11\n                      + 16\n                      * (v8[225]\n                       & (0x100000001B3LL\n                        * (((unsigned __int64)*(unsigned int *)(*(_QWORD *)v7 + 1480LL) >> 24)\n                         ^ (0x100000001B3LL\n                          * ((unsigned __int8)BYTE2(*(_DWORD *)(*(_QWORD *)v7 + 1480LL))\n                           ^ (0x100000001B3LL\n                            * ((0x100000001B3LL * ((unsigned __int8)v9 ^ 0xCBF29CE484222325uLL))\n                             ^ (unsigned __int8)BYTE1(*(_DWORD *)(*(_QWORD *)v7 + 1480LL))))))))));\n      if ( v9 != *(_DWORD *)(v12 + 16) )\n        break;\nLABEL_8:\n      if ( !v12 )\n        v12 = v8[220];\n      if ( v12 != v10 )\n      {\n        v14 = *(_QWORD *)(v12 + 24);\n        if ( v14 )\n          *(_BYTE *)(v14 + 209) = 1;\n      }\n      v7 += 96;\n      if ( v7 == v6 )\n        goto LABEL_14;\n    }\n    while ( v12 != v13 )\n    {\n      v12 = *(_QWORD *)(v12 + 8);\n      if ( v9 == *(_DWORD *)(v12 + 16) )\n        goto LABEL_8;\n    }\nLABEL_7:\n    v12 = 0;\n    goto LABEL_8;\n  }\nLABEL_14:\n  GJBaseGameLayer::processDynamicObjectActions(a1, 1);\n  GJBaseGameLayer::processTransformActions(a1, a3);\n  GJBaseGameLayer::processRotationActions(a1);\n  GJBaseGameLayer::processDynamicObjectActions(a1, 0);\n  GJBaseGameLayer::processMoveActions(a1);\n  GJBaseGameLayer::processPlayerFollowActions(a1);\n  GJBaseGameLayer::processAdvancedFollowActions(a1);\n  GJBaseGameLayer::processFollowActions(a1);\n  GJBaseGameLayer::processAreaActions(a1, a2, a3);\n  if ( *(_BYTE *)(a1 + 12668) && *(int *)(a1 + 3836) > 0 )\n  {\n    v15 = 0;\n    do\n    {\n      v16 = *(_QWORD *)(v15 + *(_QWORD *)(a1 + 3608));\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, *(double *)(v16 + 952), *(double *)(v16 + 960));\n      cocos2d::CCSprite::setPosition((cocos2d::CCSprite *)v16, (const struct cocos2d::CCPoint *)&v18);\n      v17 = *(_QWORD *)(v16 + 896);\n      if ( v17 )\n      {\n        if ( !*(_BYTE *)(v16 + 874) )\n          (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 184LL))(v17, &v18);\n      }\n      ++v3;\n      v15 += 8;\n    }\n    while ( v3 < *(_DWORD *)(a1 + 3836) );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processMoveActionsStep from 0x140334220 to 0x14033444b (555 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x14033e966\n; > GJBaseGameLayer::update @ 0x140341095\n; > <???> @ 0x1408b6ae8\n; > <???> @ 0x1408b6b1c\n; > <???> @ 0x14091f814\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:33 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140334220\npush    rsi                                                            ; +0x5, 0x140334225\npush    rdi                                                            ; +0x6, 0x140334226\npush    r14                                                            ; +0x7, 0x140334227\nsub     rsp, 30h                                                       ; +0x9, 0x140334229\nxor     ebx, ebx                                                       ; +0xd, 0x14033422d\nmov     [rsp+48h+arg_8], rbp                                           ; +0xf, 0x14033422f\nmov     [rcx+0EF8h], rbx                                               ; +0x14, 0x140334234\nmovzx   ebp, r8b                                                       ; +0x1b, 0x14033423b\nmov     [rcx+0F00h], rbx                                               ; +0x1f, 0x14033423f\nmov     rsi, rcx                                                       ; +0x26, 0x140334246\nmov     rdi, [rcx+738h]                                                ; +0x29, 0x140334249\nmov     r10, [rcx+730h]                                                ; +0x30, 0x140334250\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0x37, 0x140334257\nmovaps  xmm6, xmm1                                                     ; +0x3c, 0x14033425c\ncmp     r10, rdi                                                       ; +0x3f, 0x14033425f\njz      loc_14033433A                                                  ; +0x42, 0x140334262\nmov     [rsp+48h+arg_10], r15                                          ; +0x48, 0x140334268\nmov     r14, 100000001B3h                                              ; +0x4d, 0x14033426d\nmov     r15, 0CBF29CE484222325h                                        ; +0x57, 0x140334277\nmov     rax, [r10]                                                     ; +0x61, 0x140334281\nmov     rdx, [rsi+968h]                                                ; +0x64, 0x140334284\nmov     r8d, [rax+5C8h]                                                ; +0x6b, 0x14033428b\nmov     r11, [rdx+6E0h]                                                ; +0x72, 0x140334292\nmov     eax, r8d                                                       ; +0x79, 0x140334299\nshr     eax, 8                                                         ; +0x7c, 0x14033429c\nmovzx   r9d, al                                                        ; +0x7f, 0x14033429f\nmovzx   eax, r8b                                                       ; +0x83, 0x1403342a3\nxor     rax, r15                                                       ; +0x87, 0x1403342a7\nimul    rax, r14                                                       ; +0x8a, 0x1403342aa\nxor     r9, rax                                                        ; +0x8e, 0x1403342ae\nmov     eax, r8d                                                       ; +0x91, 0x1403342b1\nimul    r9, r14                                                        ; +0x94, 0x1403342b4\nshr     eax, 10h                                                       ; +0x98, 0x1403342b8\nmovzx   ecx, al                                                        ; +0x9b, 0x1403342bb\nmov     eax, r8d                                                       ; +0x9e, 0x1403342be\nxor     r9, rcx                                                        ; +0xa1, 0x1403342c1\nshr     rax, 18h                                                       ; +0xa4, 0x1403342c4\nmov     rcx, [rdx+6F0h]                                                ; +0xa8, 0x1403342c8\nimul    r9, r14                                                        ; +0xaf, 0x1403342cf\nxor     r9, rax                                                        ; +0xb3, 0x1403342d3\nimul    r9, r14                                                        ; +0xb6, 0x1403342d6\nand     r9, [rdx+708h]                                                 ; +0xba, 0x1403342da\nadd     r9, r9                                                         ; +0xc1, 0x1403342e1\nmov     rax, [rcx+r9*8+8]                                              ; +0xc4, 0x1403342e4\ncmp     rax, r11                                                       ; +0xc9, 0x1403342e9\njz      short loc_140334309                                            ; +0xcc, 0x1403342ec\nmov     rcx, [rcx+r9*8]                                                ; +0xce, 0x1403342ee\ncmp     r8d, [rax+10h]                                                 ; +0xd2, 0x1403342f2\njz      short loc_14033430C                                            ; +0xd6, 0x1403342f6\ncmp     rax, rcx                                                       ; +0xd8, 0x1403342f8\njz      short loc_140334309                                            ; +0xdb, 0x1403342fb\nmov     rax, [rax+8]                                                   ; +0xdd, 0x1403342fd\ncmp     r8d, [rax+10h]                                                 ; +0xe1, 0x140334301\njnz     short loc_1403342F8                                            ; +0xe5, 0x140334305\njmp     short loc_14033430C                                            ; +0xe7, 0x140334307\nmov     rax, rbx                                                       ; +0xe9, 0x140334309\ntest    rax, rax                                                       ; +0xec, 0x14033430c\ncmovz   rax, r11                                                       ; +0xef, 0x14033430f\ncmp     rax, r11                                                       ; +0xf3, 0x140334313\njz      short loc_140334328                                            ; +0xf6, 0x140334316\nmov     rcx, [rax+18h]                                                 ; +0xf8, 0x140334318\ntest    rcx, rcx                                                       ; +0xfc, 0x14033431c\njz      short loc_140334328                                            ; +0xff, 0x14033431f\nmov     byte ptr [rcx+0D1h], 1                                         ; +0x101, 0x140334321\nadd     r10, 60h ; '`'                                                 ; +0x108, 0x140334328\ncmp     r10, rdi                                                       ; +0x10c, 0x14033432c\njnz     loc_140334281                                                  ; +0x10f, 0x14033432f\nmov     r15, [rsp+48h+arg_10]                                          ; +0x115, 0x140334335\nmovaps  xmm2, xmm6                                                     ; +0x11a, 0x14033433a\nmov     edx, 1                                                         ; +0x11d, 0x14033433d\nmov     rcx, rsi                                                       ; +0x122, 0x140334342\ncall    GJBaseGameLayer__processDynamicObjectActions                   ; +0x125, 0x140334345\nmovzx   edx, bpl                                                       ; +0x12a, 0x14033434a\nmov     rcx, rsi                                                       ; +0x12e, 0x14033434e\ncall    GJBaseGameLayer__processTransformActions                       ; +0x131, 0x140334351\nmov     rcx, rsi                                                       ; +0x136, 0x140334356\ncall    GJBaseGameLayer__processRotationActions                        ; +0x139, 0x140334359\nmovaps  xmm2, xmm6                                                     ; +0x13e, 0x14033435e\nxor     edx, edx                                                       ; +0x141, 0x140334361\nmov     rcx, rsi                                                       ; +0x143, 0x140334363\ncall    GJBaseGameLayer__processDynamicObjectActions                   ; +0x146, 0x140334366\nmov     rcx, rsi                                                       ; +0x14b, 0x14033436b\ncall    GJBaseGameLayer__processMoveActions                            ; +0x14e, 0x14033436e\nmovaps  xmm1, xmm6                                                     ; +0x153, 0x140334373\nmov     rcx, rsi                                                       ; +0x156, 0x140334376\ncall    GJBaseGameLayer__processPlayerFollowActions                    ; +0x159, 0x140334379\nmovaps  xmm1, xmm6                                                     ; +0x15e, 0x14033437e\nmov     rcx, rsi                                                       ; +0x161, 0x140334381\ncall    GJBaseGameLayer__processAdvancedFollowActions                  ; +0x164, 0x140334384\nmov     rcx, rsi                                                       ; +0x169, 0x140334389\ncall    GJBaseGameLayer__processFollowActions                          ; +0x16c, 0x14033438c\nmovzx   r8d, bpl                                                       ; +0x171, 0x140334391\nmovaps  xmm1, xmm6                                                     ; +0x175, 0x140334395\nmov     rcx, rsi                                                       ; +0x178, 0x140334398\ncall    GJBaseGameLayer__processAreaActions                            ; +0x17b, 0x14033439b\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x180, 0x1403343a0\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x185, 0x1403343a5\ncmp     [rsi+317Ch], bl                                                ; +0x18a, 0x1403343aa\njz      loc_14033443D                                                  ; +0x190, 0x1403343b0\ncmp     [rsi+0EFCh], ebx                                               ; +0x196, 0x1403343b6\njle     short loc_14033443D                                            ; +0x19c, 0x1403343bc\nmov     r14, rbx                                                       ; +0x19e, 0x1403343be\nnop     dword ptr [rax+00h]                                            ; +0x1a1, 0x1403343c1\nnop     word ptr [rax+rax+00000000h]                                   ; +0x1a5, 0x1403343c5\nmov     rax, [rsi+0E18h]                                               ; +0x1b0, 0x1403343d0\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x1b7, 0x1403343d7\nmov     rdi, [r14+rax]                                                 ; +0x1bc, 0x1403343dc\nmovsd   xmm2, qword ptr [rdi+3C0h]                                     ; +0x1c0, 0x1403343e0\nmovsd   xmm1, qword ptr [rdi+3B8h]                                     ; +0x1c8, 0x1403343e8\ncvtpd2ps xmm2, xmm2                                                    ; +0x1d0, 0x1403343f0\ncvtpd2ps xmm1, xmm1                                                    ; +0x1d4, 0x1403343f4\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1d8, 0x1403343f8\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x1de, 0x1403343fe\nmov     rcx, rdi                                                       ; +0x1e3, 0x140334403\ncall    cs:__imp_?setPosition@CCSprite@cocos2d@@UEAAXAEBVCCPoint@2@@Z; cocos2d::CCSprite::setPosition(cocos2d::CCPoint const &) ; +0x1e6, 0x140334406\nmov     rcx, [rdi+380h]                                                ; +0x1ec, 0x14033440c\ntest    rcx, rcx                                                       ; +0x1f3, 0x140334413\njz      short loc_14033442F                                            ; +0x1f6, 0x140334416\ncmp     byte ptr [rdi+36Ah], 0                                         ; +0x1f8, 0x140334418\njnz     short loc_14033442F                                            ; +0x1ff, 0x14033441f\nmov     rax, [rcx]                                                     ; +0x201, 0x140334421\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x204, 0x140334424\ncall    qword ptr [rax+0B8h]                                           ; +0x209, 0x140334429\ninc     ebx                                                            ; +0x20f, 0x14033442f\nadd     r14, 8                                                         ; +0x211, 0x140334431\ncmp     ebx, [rsi+0EFCh]                                               ; +0x215, 0x140334435\njl      short loc_1403343D0                                            ; +0x21b, 0x14033443b\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x21d, 0x14033443d\nadd     rsp, 30h                                                       ; +0x222, 0x140334442\npop     r14                                                            ; +0x226, 0x140334446\npop     rdi                                                            ; +0x228, 0x140334448\npop     rsi                                                            ; +0x229, 0x140334449\nretn                                                                   ; +0x22a, 0x14033444a", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x14033e966", "GJBaseGameLayer::update @ 0x140341095", "<???> @ 0x1408b6ae8", "<???> @ 0x1408b6b1c", "<???> @ 0x14091f814"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}