{"type": "func", "start": 5372078288, "end": 5372078672, "name": "GJBaseGameLayer::moveObjects", "pseudocode": "// \n// GJBaseGameLayer::moveObjects from 0x1403368d0 to 0x140336a50 (384 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::processMoveActions @ 0x14033645a\n// > GJBaseGameLayer::processMoveActions @ 0x1403364ef\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338eac\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f03\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x14033901f\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140339046\n// > <???> @ 0x1408b6d50\n// > <???> @ 0x1408b6d84\n// > <???> @ 0x14091f94c\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:35 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::moveObjects(_DWORD *a1, cocos2d::CCArray *a2, double a3, double a4)\n{\n  unsigned int *v6; // rdi\n  __int64 v7; // rax\n  __int64 *v8; // rdi\n  __int64 *i; // r14\n  __int64 v10; // rdx\n  float v11; // xmm1_4\n\n  if ( a2 )\n  {\n    a1[3593] += cocos2d::CCArray::count(a2);\n    v6 = *((unsigned int **)a2 + 7);\n    v7 = *v6;\n    if ( (_DWORD)v7 )\n    {\n      v8 = *((__int64 **)v6 + 2);\n      for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )\n      {\n        v10 = *v8;\n        if ( !*v8 )\n          break;\n        if ( !*(_BYTE *)(v10 + 1298) && *(_DWORD *)(v10 + 1244) != a1[248] )\n        {\n          v11 = *(double *)(v10 + 960);\n          *(float *)(v10 + 1232) = *(double *)(v10 + 952);\n          *(float *)(v10 + 1236) = v11;\n          *(_DWORD *)(v10 + 1244) = a1[248];\n          *(_WORD *)(v10 + 872) = 257;\n        }\n        if ( a3 != 0.0 && !*(_BYTE *)(v10 + 712) )\n          *(double *)(v10 + 952) = a3 + *(double *)(v10 + 952);\n        if ( a4 != 0.0 )\n          *(double *)(v10 + 960) = a4 + *(double *)(v10 + 960);\n        *(_WORD *)(v10 + 849) = 257;\n        (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 1216LL))(a1);\n      }\n    }\n    (*(void (__fastcall **)(_DWORD *, cocos2d::CCArray *))(*(_QWORD *)a1 + 1224LL))(a1, a2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::moveObjects from 0x1403368d0 to 0x140336a50 (384 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::processMoveActions @ 0x14033645a\n; > GJBaseGameLayer::processMoveActions @ 0x1403364ef\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338eac\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f03\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x14033901f\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140339046\n; > <???> @ 0x1408b6d50\n; > <???> @ 0x1408b6d84\n; > <???> @ 0x14091f94c\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:35 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1403368d0\njz      locret_140336A4F                                               ; +0x3, 0x1403368d3\npush    rbx                                                            ; +0x9, 0x1403368d9\npush    r15                                                            ; +0xa, 0x1403368da\nsub     rsp, 48h                                                       ; +0xc, 0x1403368dc\nmovaps  [rsp+58h+var_28], xmm6                                         ; +0x10, 0x1403368e0\nxorps   xmm0, xmm0                                                     ; +0x15, 0x1403368e5\nucomisd xmm2, xmm0                                                     ; +0x18, 0x1403368e8\nmov     r15, rdx                                                       ; +0x1c, 0x1403368ec\nmov     rbx, rcx                                                       ; +0x1f, 0x1403368ef\nmovaps  [rsp+58h+var_38], xmm7                                         ; +0x22, 0x1403368f2\nmovaps  xmm6, xmm2                                                     ; +0x27, 0x1403368f7\nmov     [rsp+58h+arg_10], rdi                                          ; +0x2a, 0x1403368fa\nmovaps  xmm7, xmm3                                                     ; +0x2f, 0x1403368ff\nmov     [rsp+58h+arg_0], rbp                                           ; +0x32, 0x140336902\njp      short loc_140336910                                            ; +0x37, 0x140336907\njnz     short loc_140336910                                            ; +0x39, 0x140336909\nxor     bpl, bpl                                                       ; +0x3b, 0x14033690b\njmp     short loc_140336913                                            ; +0x3e, 0x14033690e\nmov     bpl, 1                                                         ; +0x40, 0x140336910\nucomisd xmm7, xmm0                                                     ; +0x43, 0x140336913\nmov     [rsp+58h+arg_8], rsi                                           ; +0x47, 0x140336917\njp      short loc_140336925                                            ; +0x4c, 0x14033691c\njnz     short loc_140336925                                            ; +0x4e, 0x14033691e\nxor     sil, sil                                                       ; +0x50, 0x140336920\njmp     short loc_140336928                                            ; +0x53, 0x140336923\nmov     sil, 1                                                         ; +0x55, 0x140336925\nmov     rcx, r15                                                       ; +0x58, 0x140336928\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5b, 0x14033692b\nadd     [rbx+3824h], eax                                               ; +0x61, 0x140336931\nmov     rdi, [r15+38h]                                                 ; +0x67, 0x140336937\nmov     eax, [rdi]                                                     ; +0x6b, 0x14033693b\ntest    eax, eax                                                       ; +0x6d, 0x14033693d\njz      loc_140336A20                                                  ; +0x6f, 0x14033693f\nmov     rdi, [rdi+10h]                                                 ; +0x75, 0x140336945\nmov     [rsp+58h+var_18], r14                                          ; +0x79, 0x140336949\nlea     r14, [rax-1]                                                   ; +0x7e, 0x14033694e\nlea     r14, [rdi+r14*8]                                               ; +0x82, 0x140336952\ncmp     rdi, r14                                                       ; +0x86, 0x140336956\nja      loc_140336A1B                                                  ; +0x89, 0x140336959\nnop                                                                    ; +0x8f, 0x14033695f\nmov     rdx, [rdi]                                                     ; +0x90, 0x140336960\ntest    rdx, rdx                                                       ; +0x93, 0x140336963\njz      loc_140336A1B                                                  ; +0x96, 0x140336966\ncmp     byte ptr [rdx+512h], 0                                         ; +0x9c, 0x14033696c\njnz     short loc_1403369C0                                            ; +0xa3, 0x140336973\nmov     eax, [rbx+3E0h]                                                ; +0xa5, 0x140336975\ncmp     [rdx+4DCh], eax                                                ; +0xab, 0x14033697b\njz      short loc_1403369C0                                            ; +0xb1, 0x140336981\nmovsd   xmm0, qword ptr [rdx+3B8h]                                     ; +0xb3, 0x140336983\nmovsd   xmm1, qword ptr [rdx+3C0h]                                     ; +0xbb, 0x14033698b\ncvtpd2ps xmm0, xmm0                                                    ; +0xc3, 0x140336993\ncvtpd2ps xmm1, xmm1                                                    ; +0xc7, 0x140336997\nmovss   dword ptr [rdx+4D0h], xmm0                                     ; +0xcb, 0x14033699b\nmovss   dword ptr [rdx+4D4h], xmm1                                     ; +0xd3, 0x1403369a3\nmov     eax, [rbx+3E0h]                                                ; +0xdb, 0x1403369ab\nmov     [rdx+4DCh], eax                                                ; +0xe1, 0x1403369b1\nmov     word ptr [rdx+368h], 101h                                      ; +0xe7, 0x1403369b7\ntest    bpl, bpl                                                       ; +0xf0, 0x1403369c0\njz      short loc_1403369E1                                            ; +0xf3, 0x1403369c3\ncmp     byte ptr [rdx+2C8h], 0                                         ; +0xf5, 0x1403369c5\njnz     short loc_1403369E1                                            ; +0xfc, 0x1403369cc\nmovaps  xmm0, xmm6                                                     ; +0xfe, 0x1403369ce\naddsd   xmm0, qword ptr [rdx+3B8h]                                     ; +0x101, 0x1403369d1\nmovsd   qword ptr [rdx+3B8h], xmm0                                     ; +0x109, 0x1403369d9\ntest    sil, sil                                                       ; +0x111, 0x1403369e1\njz      short loc_1403369F9                                            ; +0x114, 0x1403369e4\nmovaps  xmm0, xmm7                                                     ; +0x116, 0x1403369e6\naddsd   xmm0, qword ptr [rdx+3C0h]                                     ; +0x119, 0x1403369e9\nmovsd   qword ptr [rdx+3C0h], xmm0                                     ; +0x121, 0x1403369f1\nmov     word ptr [rdx+351h], 101h                                      ; +0x129, 0x1403369f9\nmov     rcx, rbx                                                       ; +0x132, 0x140336a02\nmov     rax, [rbx]                                                     ; +0x135, 0x140336a05\ncall    qword ptr [rax+4C0h]                                           ; +0x138, 0x140336a08\nadd     rdi, 8                                                         ; +0x13e, 0x140336a0e\ncmp     rdi, r14                                                       ; +0x142, 0x140336a12\njbe     loc_140336960                                                  ; +0x145, 0x140336a15\nmov     r14, [rsp+58h+var_18]                                          ; +0x14b, 0x140336a1b\nmov     rax, [rbx]                                                     ; +0x150, 0x140336a20\nmov     rdx, r15                                                       ; +0x153, 0x140336a23\nmov     rcx, rbx                                                       ; +0x156, 0x140336a26\ncall    qword ptr [rax+4C8h]                                           ; +0x159, 0x140336a29\nmov     rdi, [rsp+58h+arg_10]                                          ; +0x15f, 0x140336a2f\nmov     rsi, [rsp+58h+arg_8]                                           ; +0x164, 0x140336a34\nmov     rbp, [rsp+58h+arg_0]                                           ; +0x169, 0x140336a39\nmovaps  xmm6, [rsp+58h+var_28]                                         ; +0x16e, 0x140336a3e\nmovaps  xmm7, [rsp+58h+var_38]                                         ; +0x173, 0x140336a43\nadd     rsp, 48h                                                       ; +0x178, 0x140336a48\npop     r15                                                            ; +0x17c, 0x140336a4c\npop     rbx                                                            ; +0x17e, 0x140336a4e\nretn                                                                   ; +0x17f, 0x140336a4f", "xrefs": ["GJBaseGameLayer::processMoveActions @ 0x14033645a", "GJBaseGameLayer::processMoveActions @ 0x1403364ef", "GJBaseGameLayer::processAdvancedFollowAction @ 0x140338eac", "GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f03", "GJBaseGameLayer::processAdvancedFollowAction @ 0x14033901f", "GJBaseGameLayer::processAdvancedFollowAction @ 0x140339046", "<???> @ 0x1408b6d50", "<???> @ 0x1408b6d84", "<???> @ 0x14091f94c"], "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"}