{"type": "func", "start": 7090664, "end": 7091072, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x6c31e8 to 0x6c3380 (408 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onSelectAllLeft @ 0x78abd4\n// > EditorPauseLayer::onSelectAllRight @ 0x78abe4\n// > <???> @ 0x834c0\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::selectAllWithDirection(EditorUI *a1, bool a2)\n{\n  _BOOL4 v2; // w24\n  cocos2d::CCArray *AllObjects; // x21\n  cocos2d::CCDirector *v5; // x0\n  unsigned int v6; // w19\n  cocos2d::CCLayer *m_objectLayer; // x20\n  cocos2d::CCArray *v8; // x0\n  cocos2d::CCArray *v9; // x26\n  GameObject *v10; // x20\n  const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1\n  float v12; // [xsp+60h] [xbp+60h]\n  float v13; // [xsp+64h] [xbp+64h]\n  float v14; // [xsp+68h] [xbp+68h]\n  cocos2d::CCPoint v15; // [xsp+70h] [xbp+70h] BYREF\n\n  v2 = a2;\n  AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = 0;\n  cocos2d::CCDirector::getWinSize(v5);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(&v15, v12 * 0.5, (float)(a1->m_toolbarHeight * 0.5) + (float)(v13 * 0.5));\n  cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v15);\n  v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8);\n  if ( (unsigned int)cocos2d::CCArray::count(AllObjects) )\n  {\n    do\n    {\n      v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v6);\n      if ( LevelEditorLayer::validGroup(a1->m_editorLayer, v10, 0) )\n      {\n        getPosition = v10->getPosition;\n        if ( v2 )\n        {\n          if ( getPosition(v10)->x < v14 )\n            goto LABEL_9;\n        }\n        else if ( getPosition(v10)->x > v14 )\n        {\nLABEL_9:\n          ++v6;\n          cocos2d::CCArray::addObject(v9, v10);\n          continue;\n        }\n      }\n      ++v6;\n    }\n    while ( v6 < (unsigned int)cocos2d::CCArray::count(AllObjects) );\n  }\n  EditorUI::processSelectObjects(a1, v9);\n  EditorUI::updateButtons(a1);\n  EditorUI::deactivateRotationControl(a1);\n  EditorUI::deactivateScaleControl(a1);\n  EditorUI::deactivateTransformControl(a1);\n  EditorUI::updateObjectInfoLabel(a1);\n}", "assembly": "; \n; EditorUI::selectAllWithDirection from 0x6c31e8 to 0x6c3380 (408 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onSelectAllLeft @ 0x78abd4\n; > EditorPauseLayer::onSelectAllRight @ 0x78abe4\n; > <???> @ 0x834c0\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\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x6c31e8\nMOV             X29, SP                                                ; +0x4, 0x6c31ec\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x8, 0x6c31f0\nADRP            X25, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c31f4\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x10, 0x6c31f8\nUXTB            W24, W1                                                ; +0x14, 0x6c31fc\nADD             X23, X29, #0x80+var_18                                 ; +0x18, 0x6c3200\nLDR             X1, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6c3204\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x20, 0x6c3208\nMOV             X22, X0                                                ; +0x24, 0x6c320c\nLDR             X0, [X0,#0x4F8]; this                                  ; +0x28, 0x6c3210\nLDR             X1, [X1]                                               ; +0x2c, 0x6c3214\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x30, 0x6c3218\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x34, 0x6c321c\nBL              _ZN16LevelEditorLayer13getAllObjectsEv; LevelEditorLayer::getAllObjects(void) ; +0x38, 0x6c3220\nMOV             X21, X0                                                ; +0x3c, 0x6c3224\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x40, 0x6c3228\nADD             X20, X29, #0x80+var_10                                 ; +0x44, 0x6c322c\nADD             X8, X29, #0x80+var_20                                  ; +0x48, 0x6c3230\nMOV             W19, #0                                                ; +0x4c, 0x6c3234\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x50, 0x6c3238\nSTR             X20, [X29,#0x80+var_28]                                ; +0x54, 0x6c323c\nFMOV            S1, #0.5                                               ; +0x58, 0x6c3240\nLDR             X2, [X22,#0x4F8]                                       ; +0x5c, 0x6c3244\nLDR             S0, [X22,#0x310]                                       ; +0x60, 0x6c3248\nMOV             X0, X20; this                                          ; +0x64, 0x6c324c\nLDR             S3, [X29,#0x80+var_1C]                                 ; +0x68, 0x6c3250\nFMUL            S2, S0, S1                                             ; +0x6c, 0x6c3254\nLDR             X20, [X2,#0x1030]                                      ; +0x70, 0x6c3258\nLDR             S0, [X29,#0x80+var_20]                                 ; +0x74, 0x6c325c\nFMUL            S0, S0, S1; float                                      ; +0x78, 0x6c3260\nFMADD           S1, S3, S1, S2; float                                  ; +0x7c, 0x6c3264\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x80, 0x6c3268\nLDR             X1, [X29,#0x80+var_28]; cocos2d::CCPoint *             ; +0x84, 0x6c326c\nMOV             X8, X23                                                ; +0x88, 0x6c3270\nMOV             X0, X20; this                                          ; +0x8c, 0x6c3274\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x90, 0x6c3278\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x94, 0x6c327c\nMOV             X26, X0                                                ; +0x98, 0x6c3280\nMOV             X0, X21; this                                          ; +0x9c, 0x6c3284\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa0, 0x6c3288\nCMP             W19, W0                                                ; +0xa4, 0x6c328c\nB.CS            loc_6C32F4                                             ; +0xa8, 0x6c3290\nMOV             W1, W19; unsigned int                                  ; +0xac, 0x6c3294\nMOV             X0, X21; this                                          ; +0xb0, 0x6c3298\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xb4, 0x6c329c\nMOV             X20, X0                                                ; +0xb8, 0x6c32a0\nLDR             X0, [X22,#0x4F8]; this                                 ; +0xbc, 0x6c32a4\nMOV             X1, X20; GameObject *                                  ; +0xc0, 0x6c32a8\nMOV             W2, #0; bool                                           ; +0xc4, 0x6c32ac\nBL              _ZN16LevelEditorLayer10validGroupEP10GameObjectb; LevelEditorLayer::validGroup(GameObject *,bool) ; +0xc8, 0x6c32b0\nUXTB            W0, W0                                                 ; +0xcc, 0x6c32b4\nCBZ             W0, loc_6C32E0                                         ; +0xd0, 0x6c32b8\nLDR             X1, [X20]                                              ; +0xd4, 0x6c32bc\nMOV             X0, X20                                                ; +0xd8, 0x6c32c0\nLDR             X1, [X1,#0xC0]                                         ; +0xdc, 0x6c32c4\nCBZ             W24, loc_6C3354                                        ; +0xe0, 0x6c32c8\nBLR             X1                                                     ; +0xe4, 0x6c32cc\nLDR             S0, [X23]                                              ; +0xe8, 0x6c32d0\nLDR             S1, [X0]                                               ; +0xec, 0x6c32d4\nFCMPE           S1, S0                                                 ; +0xf0, 0x6c32d8\nB.MI            loc_6C3368                                             ; +0xf4, 0x6c32dc\nADD             W19, W19, #1                                           ; +0xf8, 0x6c32e0\nMOV             X0, X21; this                                          ; +0xfc, 0x6c32e4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x100, 0x6c32e8\nCMP             W19, W0                                                ; +0x104, 0x6c32ec\nB.CC            loc_6C3294                                             ; +0x108, 0x6c32f0\nMOV             X1, X26; cocos2d::CCArray *                            ; +0x10c, 0x6c32f4\nMOV             X0, X22; this                                          ; +0x110, 0x6c32f8\nBL              _ZN8EditorUI20processSelectObjectsEPN7cocos2d7CCArrayE; EditorUI::processSelectObjects(cocos2d::CCArray *) ; +0x114, 0x6c32fc\nMOV             X0, X22; this                                          ; +0x118, 0x6c3300\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x11c, 0x6c3304\nMOV             X0, X22; this                                          ; +0x120, 0x6c3308\nBL              _ZN8EditorUI25deactivateRotationControlEv; EditorUI::deactivateRotationControl(void) ; +0x124, 0x6c330c\nMOV             X0, X22; this                                          ; +0x128, 0x6c3310\nBL              _ZN8EditorUI22deactivateScaleControlEv; EditorUI::deactivateScaleControl(void) ; +0x12c, 0x6c3314\nMOV             X0, X22; this                                          ; +0x130, 0x6c3318\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0x134, 0x6c331c\nMOV             X0, X22; this                                          ; +0x138, 0x6c3320\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0x13c, 0x6c3324\nLDR             X25, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x140, 0x6c3328\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x144, 0x6c332c\nLDR             X0, [X25]                                              ; +0x148, 0x6c3330\nCMP             X1, X0                                                 ; +0x14c, 0x6c3334\nB.NE            loc_6C337C                                             ; +0x150, 0x6c3338\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x154, 0x6c333c\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x158, 0x6c3340\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x15c, 0x6c3344\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x160, 0x6c3348\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x164, 0x6c334c\nRET                                                                    ; +0x168, 0x6c3350\nBLR             X1                                                     ; +0x16c, 0x6c3354\nLDR             S0, [X23]                                              ; +0x170, 0x6c3358\nLDR             S1, [X0]                                               ; +0x174, 0x6c335c\nFCMPE           S1, S0                                                 ; +0x178, 0x6c3360\nB.LE            loc_6C32E0                                             ; +0x17c, 0x6c3364\nMOV             X0, X26; this                                          ; +0x180, 0x6c3368\nMOV             X1, X20; cocos2d::CCObject *                           ; +0x184, 0x6c336c\nADD             W19, W19, #1                                           ; +0x188, 0x6c3370\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x18c, 0x6c3374\nB               loc_6C32E4                                             ; +0x190, 0x6c3378\nBL              .__stack_chk_fail                                      ; +0x194, 0x6c337c", "xrefs": ["EditorPauseLayer::onSelectAllLeft @ 0x78abd4", "EditorPauseLayer::onSelectAllRight @ 0x78abe4", "<???> @ 0x834c0"], "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"}