{"type": "func", "start": 5370582576, "end": 5370582749, "name": "EditorUI::getSelectedObjects", "pseudocode": "// \n// EditorUI::getSelectedObjects from 0x1401c9630 to 0x1401c96dd (173 bytes)\n// \n// 15 xrefs:\n// > EditorCommandsPopup::onCommand @ 0x14017db85\n// > EditorCommandsPopup::onCommand @ 0x14017dbac\n// > EditorCommandsPopup::onCommand @ 0x14017dbd3\n// > EditorCommandsPopup::onCommand @ 0x14017dbfa\n// > EditorCommandsPopup::onCommand @ 0x14017dcc7\n// > EditorUI::createUndoSelectObject @ 0x1401b3a6a\n// > EditorUI::editHSV @ 0x1401be456\n// > EditorUI::handleEditorAction @ 0x1401c33d6\n// > EditorUI::handleEditorAction @ 0x1401c33fb\n// > EditorUI::handleEditorAction @ 0x1401c3420\n// > EditorUI::handleEditorAction @ 0x1401c3445\n// > EditorUI::handleEditorAction @ 0x1401c3513\n// > EditorUI::handleEditorAction @ 0x1401c35bc\n// > LevelEditorLayer::handleAction @ 0x1403f2de8\n// > <???> @ 0x14091a8a0\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:28:06 +0000\n// \n\nstruct cocos2d::CCArray *__fastcall EditorUI::getSelectedObjects(__int64 a1)\n{\n  struct cocos2d::CCObject *v2; // rcx\n  unsigned int v4; // ebx\n  cocos2d::CCArray *i; // rsi\n  struct cocos2d::CCObject *v6; // rax\n\n  v2 = *(struct cocos2d::CCObject **)(a1 + 1568);\n  if ( v2 && *((_DWORD *)v2 + 259) != 749 )\n    return cocos2d::CCArray::createWithObject(v2);\n  v4 = 0;\n  for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);\n        v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n        ++v4 )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v4);\n    if ( *((_DWORD *)v6 + 259) != 749 )\n      cocos2d::CCArray::addObject(i, v6);\n  }\n  return i;\n}", "assembly": "; \n; EditorUI::getSelectedObjects from 0x1401c9630 to 0x1401c96dd (173 bytes)\n; \n; 15 xrefs:\n; > EditorCommandsPopup::onCommand @ 0x14017db85\n; > EditorCommandsPopup::onCommand @ 0x14017dbac\n; > EditorCommandsPopup::onCommand @ 0x14017dbd3\n; > EditorCommandsPopup::onCommand @ 0x14017dbfa\n; > EditorCommandsPopup::onCommand @ 0x14017dcc7\n; > EditorUI::createUndoSelectObject @ 0x1401b3a6a\n; > EditorUI::editHSV @ 0x1401be456\n; > EditorUI::handleEditorAction @ 0x1401c33d6\n; > EditorUI::handleEditorAction @ 0x1401c33fb\n; > EditorUI::handleEditorAction @ 0x1401c3420\n; > EditorUI::handleEditorAction @ 0x1401c3445\n; > EditorUI::handleEditorAction @ 0x1401c3513\n; > EditorUI::handleEditorAction @ 0x1401c35bc\n; > LevelEditorLayer::handleAction @ 0x1403f2de8\n; > <???> @ 0x14091a8a0\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:28:06 +0000\n; \npush    rdi                                                            ; +0x0, 0x1401c9630\nsub     rsp, 20h                                                       ; +0x2, 0x1401c9632\nmov     rdi, rcx                                                       ; +0x6, 0x1401c9636\nmov     rcx, [rcx+620h]                                                ; +0x9, 0x1401c9639\ntest    rcx, rcx                                                       ; +0x10, 0x1401c9640\njz      short loc_1401C965D                                            ; +0x13, 0x1401c9643\ncmp     dword ptr [rcx+40Ch], 2EDh                                     ; +0x15, 0x1401c9645\njz      short loc_1401C965D                                            ; +0x1f, 0x1401c964f\nadd     rsp, 20h                                                       ; +0x21, 0x1401c9651\npop     rdi                                                            ; +0x25, 0x1401c9655\njmp     cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x26, 0x1401c9656\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2d, 0x1401c965d\nmov     [rsp+28h+arg_8], rsi                                           ; +0x32, 0x1401c9662\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x37, 0x1401c9667\nmov     rcx, [rdi+3B0h]                                                ; +0x3d, 0x1401c966d\nxor     ebx, ebx                                                       ; +0x44, 0x1401c9674\nmov     rsi, rax                                                       ; +0x46, 0x1401c9676\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x49, 0x1401c9679\ntest    eax, eax                                                       ; +0x4f, 0x1401c967f\njz      short loc_1401C96CA                                            ; +0x51, 0x1401c9681\nnop     dword ptr [rax+00h]                                            ; +0x53, 0x1401c9683\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x1401c9687\nmov     rcx, [rdi+3B0h]                                                ; +0x60, 0x1401c9690\nmov     edx, ebx                                                       ; +0x67, 0x1401c9697\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1401c9699\ncmp     dword ptr [rax+40Ch], 2EDh                                     ; +0x6f, 0x1401c969f\njz      short loc_1401C96B7                                            ; +0x79, 0x1401c96a9\nmov     rdx, rax                                                       ; +0x7b, 0x1401c96ab\nmov     rcx, rsi                                                       ; +0x7e, 0x1401c96ae\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x81, 0x1401c96b1\nmov     rcx, [rdi+3B0h]                                                ; +0x87, 0x1401c96b7\ninc     ebx                                                            ; +0x8e, 0x1401c96be\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x90, 0x1401c96c0\ncmp     ebx, eax                                                       ; +0x96, 0x1401c96c6\njb      short loc_1401C9690                                            ; +0x98, 0x1401c96c8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9a, 0x1401c96ca\nmov     rax, rsi                                                       ; +0x9f, 0x1401c96cf\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x1401c96d2\nadd     rsp, 20h                                                       ; +0xa7, 0x1401c96d7\npop     rdi                                                            ; +0xab, 0x1401c96db\nretn                                                                   ; +0xac, 0x1401c96dc", "xrefs": ["EditorCommandsPopup::onCommand @ 0x14017db85", "EditorCommandsPopup::onCommand @ 0x14017dbac", "EditorCommandsPopup::onCommand @ 0x14017dbd3", "EditorCommandsPopup::onCommand @ 0x14017dbfa", "EditorCommandsPopup::onCommand @ 0x14017dcc7", "EditorUI::createUndoSelectObject @ 0x1401b3a6a", "EditorUI::editHSV @ 0x1401be456", "EditorUI::handleEditorAction @ 0x1401c33d6", "EditorUI::handleEditorAction @ 0x1401c33fb", "EditorUI::handleEditorAction @ 0x1401c3420", "EditorUI::handleEditorAction @ 0x1401c3445", "EditorUI::handleEditorAction @ 0x1401c3513", "EditorUI::handleEditorAction @ 0x1401c35bc", "LevelEditorLayer::handleAction @ 0x1403f2de8", "<???> @ 0x14091a8a0"], "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"}