{"type": "func", "start": 12437824, "end": 12438000, "name": "EditorUI::getSelectedObjects", "pseudocode": "// \n// EditorUI::getSelectedObjects from 0xbdc940 to 0xbdc9f0 (176 bytes)\n// \n// 15 xrefs:\n// > LevelEditorLayer::handleAction @ 0x7a1d50\n// > EditorUI::createUndoSelectObject @ 0x7c25fc\n// > EditorUI::editHSV @ 0x7c6028\n// > EditorUI::handleEditorAction @ 0xbd72f0\n// > EditorUI::handleEditorAction @ 0xbd7608\n// > EditorUI::handleEditorAction @ 0xbd76b4\n// > EditorUI::handleEditorAction @ 0xbd76d8\n// > EditorUI::handleEditorAction @ 0xbd7918\n// > EditorUI::handleEditorAction @ 0xbd793c\n// > EditorCommandsPopup::onCommand @ 0xcbc024\n// > EditorCommandsPopup::onCommand @ 0xcbc048\n// > EditorCommandsPopup::onCommand @ 0xcbc06c\n// > EditorCommandsPopup::onCommand @ 0xcbc090\n// > EditorCommandsPopup::onCommand @ 0xcbc13c\n// > <???> @ 0x8fe48\n// \n// This function is hookable on this platform (idp: arm, 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 13:03:43 +0000\n// \n\ncocos2d::CCArray *__fastcall EditorUI::getSelectedObjects(EditorUI *this)\n{\n  cocos2d::CCObject *v1; // x1\n  unsigned int v4; // w19\n  cocos2d::CCArray *v5; // x21\n  bool v6; // cf\n  unsigned int v7; // w1\n  cocos2d::CCObject *v8; // x1\n\n  v1 = *((cocos2d::CCObject **)this + 187);\n  if ( v1 && *((_DWORD *)v1 + 257) != 749 )\n    return (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(*((cocos2d::CCArray **)this + 187), v1);\n  v4 = 0;\n  v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);\n  while ( 1 )\n  {\n    v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));\n    v7 = v4++;\n    if ( v6 )\n      break;\n    while ( 1 )\n    {\n      v8 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), v7);\n      if ( *((_DWORD *)v8 + 257) == 749 )\n        break;\n      cocos2d::CCArray::addObject(v5, v8);\n      v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));\n      v7 = v4++;\n      if ( v6 )\n        return v5;\n    }\n  }\n  return v5;\n}", "assembly": "; \n; EditorUI::getSelectedObjects from 0xbdc940 to 0xbdc9f0 (176 bytes)\n; \n; 15 xrefs:\n; > LevelEditorLayer::handleAction @ 0x7a1d50\n; > EditorUI::createUndoSelectObject @ 0x7c25fc\n; > EditorUI::editHSV @ 0x7c6028\n; > EditorUI::handleEditorAction @ 0xbd72f0\n; > EditorUI::handleEditorAction @ 0xbd7608\n; > EditorUI::handleEditorAction @ 0xbd76b4\n; > EditorUI::handleEditorAction @ 0xbd76d8\n; > EditorUI::handleEditorAction @ 0xbd7918\n; > EditorUI::handleEditorAction @ 0xbd793c\n; > EditorCommandsPopup::onCommand @ 0xcbc024\n; > EditorCommandsPopup::onCommand @ 0xcbc048\n; > EditorCommandsPopup::onCommand @ 0xcbc06c\n; > EditorCommandsPopup::onCommand @ 0xcbc090\n; > EditorCommandsPopup::onCommand @ 0xcbc13c\n; > <???> @ 0x8fe48\n; \n; This function is hookable on this platform (idp: arm, 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 13:03:43 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xbdc940\nMOV             X29, SP                                                ; +0x4, 0xbdc944\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xbdc948\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0xbdc94c\nLDR             X1, [X0,#0x5D8]; cocos2d::CCObject *                   ; +0x10, 0xbdc950\nCBZ             X1, loc_BDC978                                         ; +0x14, 0xbdc954\nLDR             W2, [X1,#0x404]                                        ; +0x18, 0xbdc958\nCMP             W2, #0x2ED                                             ; +0x1c, 0xbdc95c\nB.EQ            loc_BDC978                                             ; +0x20, 0xbdc960\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x24, 0xbdc964\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x28, 0xbdc968\nMOV             X0, X1; this                                           ; +0x2c, 0xbdc96c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x30, 0xbdc970\nB               _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x34, 0xbdc974\nMOV             X20, X0                                                ; +0x38, 0xbdc978\nMOV             W19, #0                                                ; +0x3c, 0xbdc97c\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x40, 0xbdc980\nMOV             X21, X0                                                ; +0x44, 0xbdc984\nLDR             X0, [X20,#0x380]; this                                 ; +0x48, 0xbdc988\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0xbdc98c\nCMP             W19, W0                                                ; +0x50, 0xbdc990\nMOV             W1, W19; unsigned int                                  ; +0x54, 0xbdc994\nADD             W19, W19, #1                                           ; +0x58, 0xbdc998\nB.CS            loc_BDC9DC                                             ; +0x5c, 0xbdc99c\nLDR             X0, [X20,#0x380]; this                                 ; +0x60, 0xbdc9a0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x64, 0xbdc9a4\nMOV             X2, X0                                                 ; +0x68, 0xbdc9a8\nMOV             X1, X0; cocos2d::CCObject *                            ; +0x6c, 0xbdc9ac\nMOV             X0, X21; this                                          ; +0x70, 0xbdc9b0\nLDR             W2, [X2,#0x404]                                        ; +0x74, 0xbdc9b4\nCMP             W2, #0x2ED                                             ; +0x78, 0xbdc9b8\nB.EQ            loc_BDC988                                             ; +0x7c, 0xbdc9bc\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x80, 0xbdc9c0\nLDR             X0, [X20,#0x380]; this                                 ; +0x84, 0xbdc9c4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x88, 0xbdc9c8\nCMP             W19, W0                                                ; +0x8c, 0xbdc9cc\nMOV             W1, W19                                                ; +0x90, 0xbdc9d0\nADD             W19, W19, #1                                           ; +0x94, 0xbdc9d4\nB.CC            loc_BDC9A0                                             ; +0x98, 0xbdc9d8\nMOV             X0, X21                                                ; +0x9c, 0xbdc9dc\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xa0, 0xbdc9e0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa4, 0xbdc9e4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa8, 0xbdc9e8\nRET                                                                    ; +0xac, 0xbdc9ec", "xrefs": ["LevelEditorLayer::handleAction @ 0x7a1d50", "EditorUI::createUndoSelectObject @ 0x7c25fc", "EditorUI::editHSV @ 0x7c6028", "EditorUI::handleEditorAction @ 0xbd72f0", "EditorUI::handleEditorAction @ 0xbd7608", "EditorUI::handleEditorAction @ 0xbd76b4", "EditorUI::handleEditorAction @ 0xbd76d8", "EditorUI::handleEditorAction @ 0xbd7918", "EditorUI::handleEditorAction @ 0xbd793c", "EditorCommandsPopup::onCommand @ 0xcbc024", "EditorCommandsPopup::onCommand @ 0xcbc048", "EditorCommandsPopup::onCommand @ 0xcbc06c", "EditorCommandsPopup::onCommand @ 0xcbc090", "EditorCommandsPopup::onCommand @ 0xcbc13c", "<???> @ 0x8fe48"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}