{"type": "func", "start": 5371722336, "end": 5371722715, "name": "LevelEditorLayer::quickUpdateAllPositions", "pseudocode": "// \n// LevelEditorLayer::quickUpdateAllPositions from 0x1402dfa60 to 0x1402dfbdb (379 bytes)\n// \n// 6 xrefs:\n// > EditorUI::onPlaytest @ 0x1401121a5\n// > LevelEditorLayer::onStopPlaytest @ 0x1402e085b\n// > <???> @ 0x14068ed14\n// > <???> @ 0x14068ed24\n// > <???> @ 0x1406d3548\n// > <???> @ 0x1406d3554\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 LevelEditorLayer::quickUpdateAllPositions(LevelEditorLayer *a1)\n{\n  double v1; // xmm0_8\n  std::_Vector_val<std::_Simple_types<std::vector<std::vector<GameObject *> *, std::allocator<std::vector<GameObject *> *>> *>>::pointer Myfirst; // rdx\n  int v3; // r8d\n  __int64 v5; // r15\n  _QWORD *p_Myfirst; // rcx\n  __int64 v7; // rax\n  __int64 v8; // rbp\n  __int64 v9; // r12\n  std::_Simple_types<std::vector<GameObject *> *>::value_type v10; // r14\n  __int64 v11; // rbx\n  __int64 v12; // rsi\n  std::_Simple_types<GameObject *>::value_type v13; // rdi\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  int v15; // [rsp+60h] [rbp+8h]\n  struct cocos2d::CCPoint v16; // [rsp+68h] [rbp+10h] BYREF\n\n  Myfirst = a1->m_sections._Mypair._Myval2._Myfirst;\n  v3 = 0;\n  v15 = 0;\n  if ( a1->m_sections._Mypair._Myval2._Mylast - Myfirst )\n  {\n    v5 = 0;\n    do\n    {\n      p_Myfirst = &Myfirst[v5]->_Mypair._Myval2._Myfirst;\n      if ( p_Myfirst )\n        v7 = (__int64)(p_Myfirst[1] - *p_Myfirst) >> 3;\n      else\n        LODWORD(v7) = -1;\n      v8 = 0;\n      v9 = (int)v7;\n      if ( (int)v7 > 0 )\n      {\n        do\n        {\n          v10 = a1->m_sections._Mypair._Myval2._Myfirst[v5]->_Mypair._Myval2._Myfirst[v8];\n          if ( v10 )\n          {\n            v11 = 0;\n            v12 = a1->m_sectionSizes._Mypair._Myval2._Myfirst[v5]->_Mypair._Myval2._Myfirst[v8];\n            if ( v12 > 0 )\n            {\n              do\n              {\n                v13 = v10->_Mypair._Myval2._Myfirst[v11];\n                v1 = cocos2d::CCPoint::CCPoint(*(float *)&v1, v13->m_positionX);\n                cocos2d::CCSprite::setPosition(v13, &v16);\n                m_colorSprite = v13->m_colorSprite;\n                if ( m_colorSprite )\n                {\n                  if ( !v13->m_colorSpriteLocked )\n                    m_colorSprite->setPosition_0(m_colorSprite, &v16);\n                }\n                ++v11;\n              }\n              while ( v11 < v12 );\n            }\n          }\n          ++v8;\n        }\n        while ( v8 < v9 );\n        v3 = v15;\n      }\n      Myfirst = a1->m_sections._Mypair._Myval2._Myfirst;\n      ++v3;\n      ++v5;\n      v15 = v3;\n    }\n    while ( v3 < (unsigned __int64)(a1->m_sections._Mypair._Myval2._Mylast - Myfirst) );\n  }\n}", "assembly": "; \n; LevelEditorLayer::quickUpdateAllPositions from 0x1402dfa60 to 0x1402dfbdb (379 bytes)\n; \n; 6 xrefs:\n; > EditorUI::onPlaytest @ 0x1401121a5\n; > LevelEditorLayer::onStopPlaytest @ 0x1402e085b\n; > <???> @ 0x14068ed14\n; > <???> @ 0x14068ed24\n; > <???> @ 0x1406d3548\n; > <???> @ 0x1406d3554\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     r11, rsp                                                       ; +0x0, 0x1402dfa60\npush    r13                                                            ; +0x3, 0x1402dfa63\nsub     rsp, 50h                                                       ; +0x5, 0x1402dfa65\nmov     rdx, [rcx+3598h]                                               ; +0x9, 0x1402dfa69\nxor     r8d, r8d                                                       ; +0x10, 0x1402dfa70\nmov     rax, [rcx+35A0h]                                               ; +0x13, 0x1402dfa73\nmov     r13, rcx                                                       ; +0x1a, 0x1402dfa7a\nsub     rax, rdx                                                       ; +0x1d, 0x1402dfa7d\nmov     [rsp+58h+arg_0], r8d                                           ; +0x20, 0x1402dfa80\nsar     rax, 3                                                         ; +0x25, 0x1402dfa85\ntest    rax, rax                                                       ; +0x29, 0x1402dfa89\njz      loc_1402DFBD4                                                  ; +0x2c, 0x1402dfa8c\nmov     [r11+18h], rbx                                                 ; +0x32, 0x1402dfa92\nmov     [r11-10h], rbp                                                 ; +0x36, 0x1402dfa96\nmov     [r11-18h], rsi                                                 ; +0x3a, 0x1402dfa9a\nmov     [r11-20h], rdi                                                 ; +0x3e, 0x1402dfa9e\nmov     [r11-28h], r12                                                 ; +0x42, 0x1402dfaa2\nmov     [r11-30h], r14                                                 ; +0x46, 0x1402dfaa6\nmov     [r11-38h], r15                                                 ; +0x4a, 0x1402dfaaa\nxor     r15d, r15d                                                     ; +0x4e, 0x1402dfaae\nmov     rcx, [r15+rdx]                                                 ; +0x51, 0x1402dfab1\ntest    rcx, rcx                                                       ; +0x55, 0x1402dfab5\njz      short loc_1402DFAC7                                            ; +0x58, 0x1402dfab8\nmov     rax, [rcx+8]                                                   ; +0x5a, 0x1402dfaba\nsub     rax, [rcx]                                                     ; +0x5e, 0x1402dfabe\nsar     rax, 3                                                         ; +0x61, 0x1402dfac1\njmp     short loc_1402DFACC                                            ; +0x65, 0x1402dfac5\nmov     eax, 0FFFFFFFFh                                                ; +0x67, 0x1402dfac7\nxor     ebp, ebp                                                       ; +0x6c, 0x1402dfacc\nmovsxd  r12, eax                                                       ; +0x6e, 0x1402dface\ntest    eax, eax                                                       ; +0x71, 0x1402dfad1\njle     loc_1402DFB84                                                  ; +0x73, 0x1402dfad3\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x1402dfad9\nmov     rax, [r13+3598h]                                               ; +0x80, 0x1402dfae0\nmov     rcx, [r15+rax]                                                 ; +0x87, 0x1402dfae7\nmov     rax, [rcx]                                                     ; +0x8b, 0x1402dfaeb\nmov     r14, [rax+rbp*8]                                               ; +0x8e, 0x1402dfaee\ntest    r14, r14                                                       ; +0x92, 0x1402dfaf2\njz      short loc_1402DFB73                                            ; +0x95, 0x1402dfaf5\nmov     rax, [r13+3640h]                                               ; +0x97, 0x1402dfaf7\nxor     ebx, ebx                                                       ; +0x9e, 0x1402dfafe\nmov     rcx, [r15+rax]                                                 ; +0xa0, 0x1402dfb00\nmov     rax, [rcx]                                                     ; +0xa4, 0x1402dfb04\nmovsxd  rsi, dword ptr [rax+rbp*4]                                     ; +0xa7, 0x1402dfb07\ntest    rsi, rsi                                                       ; +0xab, 0x1402dfb0b\njle     short loc_1402DFB73                                            ; +0xae, 0x1402dfb0e\nmov     rax, [r14]                                                     ; +0xb0, 0x1402dfb10\nlea     rcx, [rsp+58h+arg_8]                                           ; +0xb3, 0x1402dfb13\nmov     rdi, [rax+rbx*8]                                               ; +0xb8, 0x1402dfb18\nmovsd   xmm2, qword ptr [rdi+3C0h]                                     ; +0xbc, 0x1402dfb1c\nmovsd   xmm1, qword ptr [rdi+3B8h]                                     ; +0xc4, 0x1402dfb24\ncvtpd2ps xmm2, xmm2                                                    ; +0xcc, 0x1402dfb2c\ncvtpd2ps xmm1, xmm1                                                    ; +0xd0, 0x1402dfb30\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd4, 0x1402dfb34\nlea     rdx, [rsp+58h+arg_8]                                           ; +0xda, 0x1402dfb3a\nmov     rcx, rdi                                                       ; +0xdf, 0x1402dfb3f\ncall    cs:__imp_?setPosition@CCSprite@cocos2d@@UEAAXAEBVCCPoint@2@@Z; cocos2d::CCSprite::setPosition(cocos2d::CCPoint const &) ; +0xe2, 0x1402dfb42\nmov     rcx, [rdi+380h]                                                ; +0xe8, 0x1402dfb48\ntest    rcx, rcx                                                       ; +0xef, 0x1402dfb4f\njz      short loc_1402DFB6B                                            ; +0xf2, 0x1402dfb52\ncmp     byte ptr [rdi+36Ah], 0                                         ; +0xf4, 0x1402dfb54\njnz     short loc_1402DFB6B                                            ; +0xfb, 0x1402dfb5b\nmov     rax, [rcx]                                                     ; +0xfd, 0x1402dfb5d\nlea     rdx, [rsp+58h+arg_8]                                           ; +0x100, 0x1402dfb60\ncall    qword ptr [rax+0B8h]                                           ; +0x105, 0x1402dfb65\ninc     rbx                                                            ; +0x10b, 0x1402dfb6b\ncmp     rbx, rsi                                                       ; +0x10e, 0x1402dfb6e\njl      short loc_1402DFB10                                            ; +0x111, 0x1402dfb71\ninc     rbp                                                            ; +0x113, 0x1402dfb73\ncmp     rbp, r12                                                       ; +0x116, 0x1402dfb76\njl      loc_1402DFAE0                                                  ; +0x119, 0x1402dfb79\nmov     r8d, [rsp+58h+arg_0]                                           ; +0x11f, 0x1402dfb7f\nmov     rdx, [r13+3598h]                                               ; +0x124, 0x1402dfb84\ninc     r8d                                                            ; +0x12b, 0x1402dfb8b\nmov     rcx, [r13+35A0h]                                               ; +0x12e, 0x1402dfb8e\nadd     r15, 8                                                         ; +0x135, 0x1402dfb95\nsub     rcx, rdx                                                       ; +0x139, 0x1402dfb99\nmovsxd  rax, r8d                                                       ; +0x13c, 0x1402dfb9c\nsar     rcx, 3                                                         ; +0x13f, 0x1402dfb9f\nmov     [rsp+58h+arg_0], r8d                                           ; +0x143, 0x1402dfba3\ncmp     rax, rcx                                                       ; +0x148, 0x1402dfba8\njb      loc_1402DFAB1                                                  ; +0x14b, 0x1402dfbab\nmov     r15, [rsp+58h+var_38]                                          ; +0x151, 0x1402dfbb1\nmov     r14, [rsp+58h+var_30]                                          ; +0x156, 0x1402dfbb6\nmov     r12, [rsp+58h+var_28]                                          ; +0x15b, 0x1402dfbbb\nmov     rdi, [rsp+58h+var_20]                                          ; +0x160, 0x1402dfbc0\nmov     rsi, [rsp+58h+var_18]                                          ; +0x165, 0x1402dfbc5\nmov     rbp, [rsp+58h+var_10]                                          ; +0x16a, 0x1402dfbca\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x16f, 0x1402dfbcf\nadd     rsp, 50h                                                       ; +0x174, 0x1402dfbd4\npop     r13                                                            ; +0x178, 0x1402dfbd8\nretn                                                                   ; +0x17a, 0x1402dfbda", "xrefs": ["EditorUI::onPlaytest @ 0x1401121a5", "LevelEditorLayer::onStopPlaytest @ 0x1402e085b", "<???> @ 0x14068ed14", "<???> @ 0x14068ed24", "<???> @ 0x1406d3548", "<???> @ 0x1406d3554"], "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"}