{"type": "func", "start": 5369829216, "end": 5369829404, "name": "EditorUI::processSelectObjects", "pseudocode": "// \n// EditorUI::processSelectObjects from 0x140111760 to 0x14011181c (188 bytes)\n// \n// 5 xrefs:\n// > EditorPauseLayer::onSelectAll @ 0x1400dce52\n// > EditorUI::selectAllWithDirection @ 0x1401116ef\n// > <???> @ 0x14066f124\n// > <???> @ 0x14066f134\n// > <???> @ 0x1406c8f7c\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 EditorUI::processSelectObjects(EditorUI *a1, cocos2d::CCArray *a2)\n{\n  unsigned int v4; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  GameObject *m_selectedObject; // rdx\n\n  if ( cocos2d::CCArray::count(a2) )\n  {\n    v4 = 0;\n    if ( cocos2d::CCArray::count(a2) )\n    {\n      while ( 1 )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(a2, v4);\n        m_selectedObject = a1->m_selectedObject;\n        if ( m_selectedObject )\n        {\n          if ( m_selectedObject->m_uniqueID != v5[16].m_eObjType )\n            break;\n        }\n        if ( !cocos2d::CCArray::containsObject(a1->m_selectedObjects, v5) )\n          break;\n        if ( ++v4 >= cocos2d::CCArray::count(a2) )\n          goto LABEL_9;\n      }\n      EditorUI::createUndoSelectObject(a1, 0);\n    }\nLABEL_9:\n    EditorUI::selectObjects(a1, a2, 0);\n    EditorUI::updateObjectInfoLabel(a1);\n    a1->updateScaleControl(&a1->GJScaleControlDelegate);\n  }\n}", "assembly": "; \n; EditorUI::processSelectObjects from 0x140111760 to 0x14011181c (188 bytes)\n; \n; 5 xrefs:\n; > EditorPauseLayer::onSelectAll @ 0x1400dce52\n; > EditorUI::selectAllWithDirection @ 0x1401116ef\n; > <???> @ 0x14066f124\n; > <???> @ 0x14066f134\n; > <???> @ 0x1406c8f7c\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     [rsp+arg_8], rsi                                               ; +0x0, 0x140111760\npush    rdi                                                            ; +0x5, 0x140111765\nsub     rsp, 20h                                                       ; +0x6, 0x140111766\nmov     rsi, rcx                                                       ; +0xa, 0x14011176a\nmov     rdi, rdx                                                       ; +0xd, 0x14011176d\nmov     rcx, rdx                                                       ; +0x10, 0x140111770\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13, 0x140111773\ntest    eax, eax                                                       ; +0x19, 0x140111779\njz      loc_140111811                                                  ; +0x1b, 0x14011177b\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x140111781\nmov     rcx, rdi                                                       ; +0x26, 0x140111786\nxor     ebx, ebx                                                       ; +0x29, 0x140111789\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2b, 0x14011178b\ntest    eax, eax                                                       ; +0x31, 0x140111791\njz      short loc_1401117E9                                            ; +0x33, 0x140111793\nmov     edx, ebx                                                       ; +0x35, 0x140111795\nmov     rcx, rdi                                                       ; +0x37, 0x140111797\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a, 0x14011179a\nmov     rdx, [rsi+538h]                                                ; +0x40, 0x1401117a0\ntest    rdx, rdx                                                       ; +0x47, 0x1401117a7\njz      short loc_1401117BA                                            ; +0x4a, 0x1401117aa\nmov     ecx, [rax+39Ch]                                                ; +0x4c, 0x1401117ac\ncmp     [rdx+39Ch], ecx                                                ; +0x52, 0x1401117b2\njnz     short loc_1401117DF                                            ; +0x58, 0x1401117b8\nmov     rcx, [rsi+340h]                                                ; +0x5a, 0x1401117ba\nmov     rdx, rax                                                       ; +0x61, 0x1401117c1\ncall    cs:?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x64, 0x1401117c4\ntest    al, al                                                         ; +0x6a, 0x1401117ca\njz      short loc_1401117DF                                            ; +0x6c, 0x1401117cc\nmov     rcx, rdi                                                       ; +0x6e, 0x1401117ce\ninc     ebx                                                            ; +0x71, 0x1401117d1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x73, 0x1401117d3\ncmp     ebx, eax                                                       ; +0x79, 0x1401117d9\njb      short loc_140111795                                            ; +0x7b, 0x1401117db\njmp     short loc_1401117E9                                            ; +0x7d, 0x1401117dd\nxor     edx, edx                                                       ; +0x7f, 0x1401117df\nmov     rcx, rsi                                                       ; +0x81, 0x1401117e1\ncall    EditorUI__createUndoSelectObject                               ; +0x84, 0x1401117e4\nxor     r8d, r8d                                                       ; +0x89, 0x1401117e9\nmov     rdx, rdi                                                       ; +0x8c, 0x1401117ec\nmov     rcx, rsi                                                       ; +0x8f, 0x1401117ef\ncall    EditorUI__selectObjects                                        ; +0x92, 0x1401117f2\nmov     rcx, rsi                                                       ; +0x97, 0x1401117f7\ncall    EditorUI__updateObjectInfoLabel                                ; +0x9a, 0x1401117fa\nlea     rcx, [rsi+1B0h]                                                ; +0x9f, 0x1401117ff\nmov     rax, [rcx]                                                     ; +0xa6, 0x140111806\ncall    qword ptr [rax+28h]                                            ; +0xa9, 0x140111809\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xac, 0x14011180c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb1, 0x140111811\nadd     rsp, 20h                                                       ; +0xb6, 0x140111816\npop     rdi                                                            ; +0xba, 0x14011181a\nretn                                                                   ; +0xbb, 0x14011181b", "xrefs": ["EditorPauseLayer::onSelectAll @ 0x1400dce52", "EditorUI::selectAllWithDirection @ 0x1401116ef", "<???> @ 0x14066f124", "<???> @ 0x14066f134", "<???> @ 0x1406c8f7c"], "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"}