{"type": "func", "start": 4299088460, "end": 4299088792, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x1003ee24c to 0x1003ee398 (332 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::onSelectAllLeft @ 0x10039e0ac\n// > EditorPauseLayer::onSelectAllRight @ 0x10039e0bc\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 __fastcall EditorUI::selectAllWithDirection(EditorUI *a1, bool a2)\n{\n  _BOOL4 v2; // w20\n  cocos2d::CCArray *AllObjects; // x21\n  cocos2d::CCDirector *v5; // x0\n  cocos2d::CCLayer *m_objectLayer; // x22\n  __n128 v7; // q0\n  __n128 v8; // q1\n  cocos2d::CCArray *v9; // x22\n  unsigned int i; // w23\n  GameObject *v11; // x24\n  float *v12; // x0\n  cocos2d::CCPoint v13; // [xsp+8h] [xbp-48h] BYREF\n  float v14; // [xsp+10h] [xbp-40h]\n  float v15; // [xsp+18h] [xbp-38h]\n  float v16; // [xsp+1Ch] [xbp-34h]\n\n  v2 = a2;\n  AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v5);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  v7.n128_f32[0] = v15 * 0.5;\n  v8.n128_f32[0] = (float)(v16 * 0.5) + (float)(a1->m_toolbarHeight * 0.5);\n  sub_100022980(v7, v8, &v13);\n  cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v13);\n  v9 = (cocos2d::CCArray *)sub_10024A15C();\n  if ( (unsigned int)sub_10024A36C((__int64)AllObjects) )\n  {\n    for ( i = 0; i < (unsigned int)sub_10024A36C((__int64)AllObjects); ++i )\n    {\n      v11 = (GameObject *)sub_10024A388((__int64)AllObjects, i);\n      if ( LevelEditorLayer::validGroup(a1->m_editorLayer, v11, 0) )\n      {\n        v12 = (float *)((__int64 (__fastcall *)(GameObject *))v11->getPosition)(v11);\n        if ( !v2 )\n        {\n          if ( *v12 <= v14 )\n            continue;\nLABEL_6:\n          sub_10024A2D0((__int64)v9);\n          continue;\n        }\n        if ( *v12 < v14 )\n          goto LABEL_6;\n      }\n    }\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 0x1003ee24c to 0x1003ee398 (332 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::onSelectAllLeft @ 0x10039e0ac\n; > EditorPauseLayer::onSelectAllRight @ 0x10039e0bc\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x1003ee24c\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x1003ee250\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x1003ee254\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x1003ee258\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x1003ee25c\nADD             X29, SP, #0x50                                         ; +0x14, 0x1003ee260\nMOV             X20, X1                                                ; +0x18, 0x1003ee264\nMOV             X19, X0                                                ; +0x1c, 0x1003ee268\nLDR             X0, [X0,#0x4E8]                                        ; +0x20, 0x1003ee26c\nBL              LevelEditorLayer__getAllObjects                        ; +0x24, 0x1003ee270\nMOV             X21, X0                                                ; +0x28, 0x1003ee274\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x2c, 0x1003ee278\nADD             X8, SP, #0x50+var_38                                   ; +0x30, 0x1003ee27c\nBL              cocos2d__CCDirector__getWinSize                        ; +0x34, 0x1003ee280\nLDR             X8, [X19,#0x4E8]                                       ; +0x38, 0x1003ee284\nLDR             X22, [X8,#0xEE0]                                       ; +0x3c, 0x1003ee288\nFMOV            S1, #0.5                                               ; +0x40, 0x1003ee28c\nLDP             S0, S2, [SP,#0x50+var_38]                              ; +0x44, 0x1003ee290\nFMUL            S0, S0, S1                                             ; +0x48, 0x1003ee294\nFMUL            S2, S2, S1                                             ; +0x4c, 0x1003ee298\nLDR             S3, [X19,#0x300]                                       ; +0x50, 0x1003ee29c\nFMUL            S1, S3, S1                                             ; +0x54, 0x1003ee2a0\nFADD            S1, S2, S1                                             ; +0x58, 0x1003ee2a4\nADD             X0, SP, #0x50+var_48                                   ; +0x5c, 0x1003ee2a8\nBL              sub_100022980                                          ; +0x60, 0x1003ee2ac\nADD             X8, SP, #0x50+var_40                                   ; +0x64, 0x1003ee2b0\nADD             X1, SP, #0x50+var_48                                   ; +0x68, 0x1003ee2b4\nMOV             X0, X22                                                ; +0x6c, 0x1003ee2b8\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x70, 0x1003ee2bc\nBL              sub_10024A15C                                          ; +0x74, 0x1003ee2c0\nMOV             X22, X0                                                ; +0x78, 0x1003ee2c4\nMOV             X0, X21                                                ; +0x7c, 0x1003ee2c8\nBL              sub_10024A36C                                          ; +0x80, 0x1003ee2cc\nCBZ             W0, loc_1003EE34C                                      ; +0x84, 0x1003ee2d0\nMOV             W23, #0                                                ; +0x88, 0x1003ee2d4\nMOV             X0, X21                                                ; +0x8c, 0x1003ee2d8\nMOV             X1, X23                                                ; +0x90, 0x1003ee2dc\nBL              sub_10024A388                                          ; +0x94, 0x1003ee2e0\nMOV             X24, X0                                                ; +0x98, 0x1003ee2e4\nLDR             X0, [X19,#0x4E8]                                       ; +0x9c, 0x1003ee2e8\nMOV             X1, X24                                                ; +0xa0, 0x1003ee2ec\nMOV             W2, #0                                                 ; +0xa4, 0x1003ee2f0\nBL              LevelEditorLayer__validGroup                           ; +0xa8, 0x1003ee2f4\nCBZ             W0, loc_1003EE32C                                      ; +0xac, 0x1003ee2f8\nLDR             X8, [X24]                                              ; +0xb0, 0x1003ee2fc\nLDR             X8, [X8,#0xC0]                                         ; +0xb4, 0x1003ee300\nMOV             X0, X24                                                ; +0xb8, 0x1003ee304\nBLR             X8                                                     ; +0xbc, 0x1003ee308\nLDR             S0, [X0]                                               ; +0xc0, 0x1003ee30c\nLDR             S1, [SP,#0x50+var_40]                                  ; +0xc4, 0x1003ee310\nFCMP            S0, S1                                                 ; +0xc8, 0x1003ee314\nCBZ             W20, loc_1003EE344                                     ; +0xcc, 0x1003ee318\nB.PL            loc_1003EE32C                                          ; +0xd0, 0x1003ee31c\nMOV             X0, X22                                                ; +0xd4, 0x1003ee320\nMOV             X1, X24                                                ; +0xd8, 0x1003ee324\nBL              sub_10024A2D0                                          ; +0xdc, 0x1003ee328\nADD             W23, W23, #1                                           ; +0xe0, 0x1003ee32c\nMOV             X0, X21                                                ; +0xe4, 0x1003ee330\nBL              sub_10024A36C                                          ; +0xe8, 0x1003ee334\nCMP             W23, W0                                                ; +0xec, 0x1003ee338\nB.CC            loc_1003EE2D8                                          ; +0xf0, 0x1003ee33c\nB               loc_1003EE34C                                          ; +0xf4, 0x1003ee340\nB.GT            loc_1003EE320                                          ; +0xf8, 0x1003ee344\nB               loc_1003EE32C                                          ; +0xfc, 0x1003ee348\nMOV             X0, X19                                                ; +0x100, 0x1003ee34c\nMOV             X1, X22                                                ; +0x104, 0x1003ee350\nBL              EditorUI__processSelectObjects                         ; +0x108, 0x1003ee354\nMOV             X0, X19                                                ; +0x10c, 0x1003ee358\nBL              EditorUI__updateButtons                                ; +0x110, 0x1003ee35c\nMOV             X0, X19                                                ; +0x114, 0x1003ee360\nBL              EditorUI__deactivateRotationControl                    ; +0x118, 0x1003ee364\nMOV             X0, X19                                                ; +0x11c, 0x1003ee368\nBL              EditorUI__deactivateScaleControl                       ; +0x120, 0x1003ee36c\nMOV             X0, X19                                                ; +0x124, 0x1003ee370\nBL              EditorUI__deactivateTransformControl                   ; +0x128, 0x1003ee374\nMOV             X0, X19                                                ; +0x12c, 0x1003ee378\nBL              EditorUI__updateObjectInfoLabel                        ; +0x130, 0x1003ee37c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x134, 0x1003ee380\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x138, 0x1003ee384\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x13c, 0x1003ee388\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x140, 0x1003ee38c\nADD             SP, SP, #0x60 ; '`'                                    ; +0x144, 0x1003ee390\nRET                                                                    ; +0x148, 0x1003ee394", "xrefs": ["EditorPauseLayer::onSelectAllLeft @ 0x10039e0ac", "EditorPauseLayer::onSelectAllRight @ 0x10039e0bc"], "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"}