{"type": "func", "start": 5371722720, "end": 5371722960, "name": "LevelEditorLayer::updateDisabledObjectsLastPos", "pseudocode": "// \n// LevelEditorLayer::updateDisabledObjectsLastPos from 0x1402dfbe0 to 0x1402dfcd0 (240 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140586398\n// > <???> @ 0x14068ed38\n// > <???> @ 0x14068ed6c\n// > <???> @ 0x1406d3578\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::updateDisabledObjectsLastPos(LevelEditorLayer *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::ccArray *data; // rdi\n  __int64 num; // rax\n  GameObject **arr; // rdi\n  GameObject **i; // rsi\n  GameObject *v7; // rdx\n  unsigned int m_commandIndex; // eax\n  __int64 m_disabledObjectsCount; // rcx\n  std::_Vector_val<std::_Simple_types<GameObject *>>::pointer Mylast; // rcx\n  GameObject *v11; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( !a1->m_startOptimization )\n  {\n    if ( a2 )\n    {\n      data = a2->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = (GameObject **)data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          v7 = *arr;\n          if ( !*arr )\n            break;\n          if ( v7->m_isDecoration2 )\n          {\n            m_commandIndex = a1->m_gameState.m_commandIndex;\n            if ( v7->m_unk4C4 != m_commandIndex )\n            {\n              v7->m_unk4C4 = m_commandIndex;\n              m_disabledObjectsCount = a1->m_disabledObjectsCount;\n              v11 = v7;\n              if ( a1->m_disabledObjectsIndex > (int)m_disabledObjectsCount )\n              {\n                a1->m_disabledObjects._Mypair._Myval2._Myfirst[m_disabledObjectsCount] = v7;\n              }\n              else\n              {\n                Mylast = a1->m_disabledObjects._Mypair._Myval2._Mylast;\n                if ( Mylast == a1->m_disabledObjects._Mypair._Myval2._Myend )\n                {\n                  sub_14012D2A0(\n                    (const void **)&a1->m_disabledObjects._Mypair._Myval2._Myfirst,\n                    (_BYTE *)a1->m_disabledObjects._Mypair._Myval2._Mylast,\n                    &v11);\n                }\n                else\n                {\n                  *Mylast = v7;\n                  ++a1->m_disabledObjects._Mypair._Myval2._Mylast;\n                }\n                ++a1->m_disabledObjectsIndex;\n              }\n              ++a1->m_disabledObjectsCount;\n            }\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; LevelEditorLayer::updateDisabledObjectsLastPos from 0x1402dfbe0 to 0x1402dfcd0 (240 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140586398\n; > <???> @ 0x14068ed38\n; > <???> @ 0x14068ed6c\n; > <???> @ 0x1406d3578\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\npush    rbx                                                            ; +0x0, 0x1402dfbe0\nsub     rsp, 20h                                                       ; +0x2, 0x1402dfbe2\ncmp     byte ptr [rcx+3767h], 0                                        ; +0x6, 0x1402dfbe6\nmov     rbx, rcx                                                       ; +0xd, 0x1402dfbed\njnz     loc_1402DFCCA                                                  ; +0x10, 0x1402dfbf0\ntest    rdx, rdx                                                       ; +0x16, 0x1402dfbf6\njz      loc_1402DFCCA                                                  ; +0x19, 0x1402dfbf9\nmov     [rsp+28h+arg_10], rdi                                          ; +0x1f, 0x1402dfbff\nmov     rdi, [rdx+38h]                                                 ; +0x24, 0x1402dfc04\nmov     eax, [rdi]                                                     ; +0x28, 0x1402dfc08\ntest    eax, eax                                                       ; +0x2a, 0x1402dfc0a\njz      loc_1402DFCC5                                                  ; +0x2c, 0x1402dfc0c\nmov     rdi, [rdi+10h]                                                 ; +0x32, 0x1402dfc12\nmov     [rsp+28h+arg_8], rsi                                           ; +0x36, 0x1402dfc16\nlea     rsi, [rax-1]                                                   ; +0x3b, 0x1402dfc1b\nlea     rsi, [rdi+rsi*8]                                               ; +0x3f, 0x1402dfc1f\ncmp     rdi, rsi                                                       ; +0x43, 0x1402dfc23\nja      loc_1402DFCC0                                                  ; +0x46, 0x1402dfc26\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1402dfc2c\nmov     rdx, [rdi]                                                     ; +0x50, 0x1402dfc30\ntest    rdx, rdx                                                       ; +0x53, 0x1402dfc33\njz      loc_1402DFCC0                                                  ; +0x56, 0x1402dfc36\ncmp     byte ptr [rdx+512h], 0                                         ; +0x5c, 0x1402dfc3c\njz      short loc_1402DFCB3                                            ; +0x63, 0x1402dfc43\nmov     eax, [rbx+3E0h]                                                ; +0x65, 0x1402dfc45\ncmp     [rdx+4DCh], eax                                                ; +0x6b, 0x1402dfc4b\njz      short loc_1402DFCB3                                            ; +0x71, 0x1402dfc51\nmov     [rdx+4DCh], eax                                                ; +0x73, 0x1402dfc53\nlea     rax, [rbx+0DF8h]                                               ; +0x79, 0x1402dfc59\nmovsxd  rcx, dword ptr [rbx+0EDCh]                                     ; +0x80, 0x1402dfc60\nmov     [rsp+28h+arg_0], rdx                                           ; +0x87, 0x1402dfc67\ncmp     [rbx+0EF0h], ecx                                               ; +0x8c, 0x1402dfc6c\njg      short loc_1402DFCA6                                            ; +0x92, 0x1402dfc72\nmov     rcx, [rax+8]                                                   ; +0x94, 0x1402dfc74\ncmp     rcx, [rax+10h]                                                 ; +0x98, 0x1402dfc78\njz      short loc_1402DFC8E                                            ; +0x9c, 0x1402dfc7c\nmov     [rcx], rdx                                                     ; +0x9e, 0x1402dfc7e\nadd     qword ptr [rax+8], 8                                           ; +0xa1, 0x1402dfc81\ninc     dword ptr [rbx+0EF0h]                                          ; +0xa6, 0x1402dfc86\njmp     short loc_1402DFCAD                                            ; +0xac, 0x1402dfc8c\nmov     rdx, rcx                                                       ; +0xae, 0x1402dfc8e\nlea     r8, [rsp+28h+arg_0]                                            ; +0xb1, 0x1402dfc91\nmov     rcx, rax                                                       ; +0xb6, 0x1402dfc96\ncall    sub_14012D2A0                                                  ; +0xb9, 0x1402dfc99\ninc     dword ptr [rbx+0EF0h]                                          ; +0xbe, 0x1402dfc9e\njmp     short loc_1402DFCAD                                            ; +0xc4, 0x1402dfca4\nmov     rax, [rax]                                                     ; +0xc6, 0x1402dfca6\nmov     [rax+rcx*8], rdx                                               ; +0xc9, 0x1402dfca9\ninc     dword ptr [rbx+0EDCh]                                          ; +0xcd, 0x1402dfcad\nadd     rdi, 8                                                         ; +0xd3, 0x1402dfcb3\ncmp     rdi, rsi                                                       ; +0xd7, 0x1402dfcb7\njbe     loc_1402DFC30                                                  ; +0xda, 0x1402dfcba\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xe0, 0x1402dfcc0\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xe5, 0x1402dfcc5\nadd     rsp, 20h                                                       ; +0xea, 0x1402dfcca\npop     rbx                                                            ; +0xee, 0x1402dfcce\nretn                                                                   ; +0xef, 0x1402dfccf", "xrefs": ["<???> @ 0x140586398", "<???> @ 0x14068ed38", "<???> @ 0x14068ed6c", "<???> @ 0x1406d3578"], "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"}