{"type": "func", "start": 3824336, "end": 3824604, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x3a5ad0 to 0x3a5bdc (268 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::onSelectAllLeft @ 0x3ff302\n// > EditorPauseLayer::onSelectAllRight @ 0x3ff312\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 v3; // r9\n  cocos2d::CCArray *AllObjects; // r8\n  cocos2d::CCDirector *v5; // r0\n  cocos2d::CCLayer *m_objectLayer; // r7\n  cocos2d::CCPoint *v7; // r0\n  unsigned int v8; // r7\n  cocos2d::CCArray *v9; // r10\n  GameObject *v10; // r5\n  const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // r3\n  float *v12; // r0\n  float *v13; // r0\n  cocos2d::CCSize v14; // [sp+4h] [bp-1Ch] BYREF\n  cocos2d::CCPoint v15; // [sp+Ch] [bp-14h] BYREF\n  cocos2d::CCPoint v16; // [sp+14h] [bp-Ch] BYREF\n\n  v3 = a2;\n  AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v14, v5);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(&v16, v14.width * 0.5, (float)(a1->m_toolbarHeight * 0.5) + (float)(v14.height * 0.5));\n  v7 = cocos2d::CCNode::convertToNodeSpace(&v15, m_objectLayer, &v16);\n  v8 = 0;\n  v9 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v7);\n  while ( v8 < cocos2d::CCArray::count(AllObjects) )\n  {\n    v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v8);\n    if ( !LevelEditorLayer::validGroup(a1->m_editorLayer, v10, 0) )\n      goto LABEL_9;\n    getPosition = v10->getPosition;\n    if ( v3 )\n    {\n      v12 = (float *)getPosition(v10);\n      if ( *v12 >= v15.x )\n        goto LABEL_9;\n    }\n    else\n    {\n      v13 = (float *)getPosition(v10);\n      if ( *v13 <= v15.x )\n        goto LABEL_9;\n    }\n    cocos2d::CCArray::addObject(v9, v10);\nLABEL_9:\n    ++v8;\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 0x3a5ad0 to 0x3a5bdc (268 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::onSelectAllLeft @ 0x3ff302\n; > EditorPauseLayer::onSelectAllRight @ 0x3ff312\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\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3a5ad0\nSUB             SP, SP, #0x20                                          ; +0x4, 0x3a5ad4\nLDR             R6, =(__stack_chk_guard_ptr - 0x3A5AE4)                ; +0x6, 0x3a5ad6\nMOV             R4, R0                                                 ; +0x8, 0x3a5ad8\nLDR.W           R0, [R0,#0x340]; this                                  ; +0xa, 0x3a5ada\nMOV             R9, R1                                                 ; +0xe, 0x3a5ade\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3a5ae0\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x3a5ae2\nADD             R5, SP, #0x20+var_C                                    ; +0x14, 0x3a5ae4\nLDR             R3, [R6]                                               ; +0x16, 0x3a5ae6\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x18, 0x3a5ae8\nBL              _ZN16LevelEditorLayer13getAllObjectsEv; LevelEditorLayer::getAllObjects(void) ; +0x1a, 0x3a5aea\nMOV             R8, R0                                                 ; +0x1e, 0x3a5aee\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x3a5af0\nMOV             R1, R0                                                 ; +0x24, 0x3a5af4\nADD             R0, SP, #0x20+var_1C; this                             ; +0x26, 0x3a5af6\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x28, 0x3a5af8\nVMOV.F32        S14, #0.5                                              ; +0x2c, 0x3a5afc\nVLDR            S13, [SP,#0x20+var_1C]                                 ; +0x30, 0x3a5b00\nMOV             R0, R5; this                                           ; +0x34, 0x3a5b04\nLDR.W           R3, [R4,#0x340]                                        ; +0x36, 0x3a5b06\nVLDR            S15, [R4,#0x23C]                                       ; +0x3a, 0x3a5b0a\nLDR.W           R7, [R3,#0x9F0]                                        ; +0x3e, 0x3a5b0e\nVMUL.F32        S13, S13, S14                                          ; +0x42, 0x3a5b12\nVMUL.F32        S15, S15, S14                                          ; +0x46, 0x3a5b16\nVMOV            R1, S13; float                                         ; +0x4a, 0x3a5b1a\nVLDR            S13, [SP,#0x20+var_18]                                 ; +0x4e, 0x3a5b1e\nVMLA.F32        S15, S13, S14                                          ; +0x52, 0x3a5b22\nVMOV            R2, S15; float                                         ; +0x56, 0x3a5b26\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5a, 0x3a5b2a\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x5e, 0x3a5b2e\nADD             R0, SP, #0x20+var_14; this                             ; +0x60, 0x3a5b30\nMOV             R2, R5                                                 ; +0x62, 0x3a5b32\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x64, 0x3a5b34\nMOVS            R7, #0                                                 ; +0x68, 0x3a5b38\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x6a, 0x3a5b3a\nMOV             R10, R0                                                ; +0x6e, 0x3a5b3e\nMOV             R0, R8; this                                           ; +0x70, 0x3a5b40\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x72, 0x3a5b42\nCMP             R7, R0                                                 ; +0x76, 0x3a5b46\nBCS             loc_3A5BA4                                             ; +0x78, 0x3a5b48\nMOV             R1, R7; unsigned int                                   ; +0x7a, 0x3a5b4a\nMOV             R0, R8; this                                           ; +0x7c, 0x3a5b4c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x7e, 0x3a5b4e\nMOVS            R2, #0; bool                                           ; +0x82, 0x3a5b52\nMOV             R5, R0                                                 ; +0x84, 0x3a5b54\nLDR.W           R0, [R4,#0x340]; this                                  ; +0x86, 0x3a5b56\nMOV             R1, R5; GameObject *                                   ; +0x8a, 0x3a5b5a\nBL              _ZN16LevelEditorLayer10validGroupEP10GameObjectb; LevelEditorLayer::validGroup(GameObject *,bool) ; +0x8c, 0x3a5b5c\nCBZ             R0, loc_3A5BA0                                         ; +0x90, 0x3a5b60\nLDR             R3, [R5]                                               ; +0x92, 0x3a5b62\nMOV             R0, R5                                                 ; +0x94, 0x3a5b64\nLDR             R3, [R3,#0x60]                                         ; +0x96, 0x3a5b66\nCMP.W           R9, #0                                                 ; +0x98, 0x3a5b68\nBEQ             loc_3A5B84                                             ; +0x9c, 0x3a5b6c\nBLX             R3                                                     ; +0x9e, 0x3a5b6e\nVLDR            S15, [SP,#0x20+var_14]                                 ; +0xa0, 0x3a5b70\nVLDR            S14, [R0]                                              ; +0xa4, 0x3a5b74\nVCMPE.F32       S14, S15                                               ; +0xa8, 0x3a5b78\nVMRS            APSR_nzcv, FPSCR                                       ; +0xac, 0x3a5b7c\nBPL             loc_3A5BA0                                             ; +0xb0, 0x3a5b80\nB               loc_3A5B98                                             ; +0xb2, 0x3a5b82\nBLX             R3                                                     ; +0xb4, 0x3a5b84\nVLDR            S15, [SP,#0x20+var_14]                                 ; +0xb6, 0x3a5b86\nVLDR            S14, [R0]                                              ; +0xba, 0x3a5b8a\nVCMPE.F32       S14, S15                                               ; +0xbe, 0x3a5b8e\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc2, 0x3a5b92\nBLE             loc_3A5BA0                                             ; +0xc6, 0x3a5b96\nMOV             R0, R10; this                                          ; +0xc8, 0x3a5b98\nMOV             R1, R5; cocos2d::CCObject *                            ; +0xca, 0x3a5b9a\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xcc, 0x3a5b9c\nADDS            R7, #1                                                 ; +0xd0, 0x3a5ba0\nB               loc_3A5B40                                             ; +0xd2, 0x3a5ba2\nMOV             R1, R10; cocos2d::CCArray *                            ; +0xd4, 0x3a5ba4\nMOV             R0, R4; this                                           ; +0xd6, 0x3a5ba6\nBL              _ZN8EditorUI20processSelectObjectsEPN7cocos2d7CCArrayE; EditorUI::processSelectObjects(cocos2d::CCArray *) ; +0xd8, 0x3a5ba8\nMOV             R0, R4; this                                           ; +0xdc, 0x3a5bac\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0xde, 0x3a5bae\nMOV             R0, R4; this                                           ; +0xe2, 0x3a5bb2\nBL              _ZN8EditorUI25deactivateRotationControlEv; EditorUI::deactivateRotationControl(void) ; +0xe4, 0x3a5bb4\nMOV             R0, R4; this                                           ; +0xe8, 0x3a5bb8\nBL              _ZN8EditorUI22deactivateScaleControlEv; EditorUI::deactivateScaleControl(void) ; +0xea, 0x3a5bba\nMOV             R0, R4; this                                           ; +0xee, 0x3a5bbe\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0xf0, 0x3a5bc0\nMOV             R0, R4; this                                           ; +0xf4, 0x3a5bc4\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0xf6, 0x3a5bc6\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xfa, 0x3a5bca\nLDR             R3, [R6]                                               ; +0xfc, 0x3a5bcc\nCMP             R2, R3                                                 ; +0xfe, 0x3a5bce\nBEQ             loc_3A5BD6                                             ; +0x100, 0x3a5bd0\nBLX             __stack_chk_fail                                       ; +0x102, 0x3a5bd2\nADD             SP, SP, #0x20 ; ' '                                    ; +0x106, 0x3a5bd6\nPOP.W           {R4-R10,PC}                                            ; +0x108, 0x3a5bd8", "xrefs": ["EditorPauseLayer::onSelectAllLeft @ 0x3ff302", "EditorPauseLayer::onSelectAllRight @ 0x3ff312"], "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"}