{"type": "func", "start": 7293492, "end": 7293748, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x6f4a34 to 0x6f4b34 (256 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f2028\n// > EditorUI::handleEditorAction @ 0x6f2038\n// > EditorCommandsPopup::onCommand @ 0x77a7ee\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:57:38 +0000\n// \n\nint __fastcall EditorUI::selectAllWithDirection(LevelEditorLayer **this, int a2)\n{\n  cocos2d::CCDirector *AllObjects; // r8\n  const cocos2d::CCPoint *v5; // r7\n  cocos2d::CCArray *v6; // r0\n  unsigned int v7; // r7\n  cocos2d::CCArray *v8; // r10\n  GameObject *v9; // r5\n  int (__fastcall *v10)(GameObject *); // r3\n  float *v11; // r0\n  float *v12; // r0\n  float v14[2]; // [sp+4h] [bp-1Ch] BYREF\n  float v15[2]; // [sp+Ch] [bp-14h] BYREF\n  _BYTE v16[8]; // [sp+14h] [bp-Ch] BYREF\n\n  AllObjects = (cocos2d::CCDirector *)LevelEditorLayer::getAllObjects(*(this + 236));\n  cocos2d::CCDirector::sharedDirector(AllObjects);\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14);\n  v5 = *((const cocos2d::CCPoint **)*(this + 236) + 609);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)v16,\n    v14[0] * 0.5,\n    (float)(*((float *)this + 158) * 0.5) + (float)(v14[1] * 0.5));\n  v6 = (cocos2d::CCArray *)cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v15, v5);\n  v7 = 0;\n  v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6);\n  while ( v7 < cocos2d::CCArray::count(AllObjects) )\n  {\n    v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v7);\n    if ( !LevelEditorLayer::validGroup(*(this + 236), v9, 0) )\n      goto LABEL_9;\n    v10 = *(int (__fastcall **)(GameObject *))(*(_DWORD *)v9 + 96);\n    if ( a2 )\n    {\n      v11 = (float *)v10(v9);\n      if ( *v11 >= v15[0] )\n        goto LABEL_9;\n    }\n    else\n    {\n      v12 = (float *)v10(v9);\n      if ( *v12 <= v15[0] )\n        goto LABEL_9;\n    }\n    cocos2d::CCArray::addObject(v8, v9);\nLABEL_9:\n    ++v7;\n  }\n  EditorUI::processSelectObjects((EditorUI *)this, v8);\n  EditorUI::deactivateRotationControl((EditorUI *)this);\n  EditorUI::deactivateScaleControl((EditorUI *)this);\n  return EditorUI::deactivateTransformControl((EditorUI *)this);\n}", "assembly": "; \n; EditorUI::selectAllWithDirection from 0x6f4a34 to 0x6f4b34 (256 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f2028\n; > EditorUI::handleEditorAction @ 0x6f2038\n; > EditorCommandsPopup::onCommand @ 0x77a7ee\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:57:38 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x6f4a34\nSUB             SP, SP, #0x20                                          ; +0x4, 0x6f4a38\nLDR             R6, =(__stack_chk_guard_ptr - 0x6F4A48)                ; +0x6, 0x6f4a3a\nMOV             R4, R0                                                 ; +0x8, 0x6f4a3c\nLDR.W           R0, [R0,#0x3B0]; this                                  ; +0xa, 0x6f4a3e\nMOV             R9, R1                                                 ; +0xe, 0x6f4a42\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x6f4a44\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x6f4a46\nADD             R5, SP, #0x20+var_C                                    ; +0x14, 0x6f4a48\nLDR             R3, [R6]                                               ; +0x16, 0x6f4a4a\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x18, 0x6f4a4c\nBL              _ZN16LevelEditorLayer13getAllObjectsEv; LevelEditorLayer::getAllObjects(void) ; +0x1a, 0x6f4a4e\nMOV             R8, R0                                                 ; +0x1e, 0x6f4a52\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x6f4a54\nMOV             R1, R0                                                 ; +0x24, 0x6f4a58\nADD             R0, SP, #0x20+var_1C; this                             ; +0x26, 0x6f4a5a\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x28, 0x6f4a5c\nVMOV.F32        S14, #0.5                                              ; +0x2c, 0x6f4a60\nVLDR            S13, [SP,#0x20+var_1C]                                 ; +0x30, 0x6f4a64\nMOV             R0, R5; this                                           ; +0x34, 0x6f4a68\nLDR.W           R3, [R4,#0x3B0]                                        ; +0x36, 0x6f4a6a\nVLDR            S15, [R4,#0x278]                                       ; +0x3a, 0x6f4a6e\nLDR.W           R7, [R3,#0x984]                                        ; +0x3e, 0x6f4a72\nVMUL.F32        S13, S13, S14                                          ; +0x42, 0x6f4a76\nVMUL.F32        S15, S15, S14                                          ; +0x46, 0x6f4a7a\nVMOV            R1, S13; float                                         ; +0x4a, 0x6f4a7e\nVLDR            S13, [SP,#0x20+var_18]                                 ; +0x4e, 0x6f4a82\nVMLA.F32        S15, S13, S14                                          ; +0x52, 0x6f4a86\nVMOV            R2, S15; float                                         ; +0x56, 0x6f4a8a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5a, 0x6f4a8e\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x5e, 0x6f4a92\nADD             R0, SP, #0x20+var_14; this                             ; +0x60, 0x6f4a94\nMOV             R2, R5                                                 ; +0x62, 0x6f4a96\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x64, 0x6f4a98\nMOVS            R7, #0                                                 ; +0x68, 0x6f4a9c\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x6a, 0x6f4a9e\nMOV             R10, R0                                                ; +0x6e, 0x6f4aa2\nMOV             R0, R8; this                                           ; +0x70, 0x6f4aa4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x72, 0x6f4aa6\nCMP             R7, R0                                                 ; +0x76, 0x6f4aaa\nBCS             loc_6F4B08                                             ; +0x78, 0x6f4aac\nMOV             R1, R7; unsigned int                                   ; +0x7a, 0x6f4aae\nMOV             R0, R8; this                                           ; +0x7c, 0x6f4ab0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x7e, 0x6f4ab2\nMOVS            R2, #0; bool                                           ; +0x82, 0x6f4ab6\nMOV             R5, R0                                                 ; +0x84, 0x6f4ab8\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x86, 0x6f4aba\nMOV             R1, R5; GameObject *                                   ; +0x8a, 0x6f4abe\nBL              _ZN16LevelEditorLayer10validGroupEP10GameObjectb; LevelEditorLayer::validGroup(GameObject *,bool) ; +0x8c, 0x6f4ac0\nCBZ             R0, loc_6F4B04                                         ; +0x90, 0x6f4ac4\nLDR             R3, [R5]                                               ; +0x92, 0x6f4ac6\nMOV             R0, R5                                                 ; +0x94, 0x6f4ac8\nLDR             R3, [R3,#0x60]                                         ; +0x96, 0x6f4aca\nCMP.W           R9, #0                                                 ; +0x98, 0x6f4acc\nBEQ             loc_6F4AE8                                             ; +0x9c, 0x6f4ad0\nBLX             R3                                                     ; +0x9e, 0x6f4ad2\nVLDR            S15, [SP,#0x20+var_14]                                 ; +0xa0, 0x6f4ad4\nVLDR            S14, [R0]                                              ; +0xa4, 0x6f4ad8\nVCMPE.F32       S14, S15                                               ; +0xa8, 0x6f4adc\nVMRS            APSR_nzcv, FPSCR                                       ; +0xac, 0x6f4ae0\nBPL             loc_6F4B04                                             ; +0xb0, 0x6f4ae4\nB               loc_6F4AFC                                             ; +0xb2, 0x6f4ae6\nBLX             R3                                                     ; +0xb4, 0x6f4ae8\nVLDR            S15, [SP,#0x20+var_14]                                 ; +0xb6, 0x6f4aea\nVLDR            S14, [R0]                                              ; +0xba, 0x6f4aee\nVCMPE.F32       S14, S15                                               ; +0xbe, 0x6f4af2\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc2, 0x6f4af6\nBLE             loc_6F4B04                                             ; +0xc6, 0x6f4afa\nMOV             R0, R10; this                                          ; +0xc8, 0x6f4afc\nMOV             R1, R5; cocos2d::CCObject *                            ; +0xca, 0x6f4afe\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xcc, 0x6f4b00\nADDS            R7, #1                                                 ; +0xd0, 0x6f4b04\nB               loc_6F4AA4                                             ; +0xd2, 0x6f4b06\nMOV             R1, R10; cocos2d::CCArray *                            ; +0xd4, 0x6f4b08\nMOV             R0, R4; this                                           ; +0xd6, 0x6f4b0a\nBL              _ZN8EditorUI20processSelectObjectsEPN7cocos2d7CCArrayE; EditorUI::processSelectObjects(cocos2d::CCArray *) ; +0xd8, 0x6f4b0c\nMOV             R0, R4; this                                           ; +0xdc, 0x6f4b10\nBL              _ZN8EditorUI25deactivateRotationControlEv; EditorUI::deactivateRotationControl(void) ; +0xde, 0x6f4b12\nMOV             R0, R4; this                                           ; +0xe2, 0x6f4b16\nBL              _ZN8EditorUI22deactivateScaleControlEv; EditorUI::deactivateScaleControl(void) ; +0xe4, 0x6f4b18\nMOV             R0, R4; this                                           ; +0xe8, 0x6f4b1c\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0xea, 0x6f4b1e\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xee, 0x6f4b22\nLDR             R3, [R6]                                               ; +0xf0, 0x6f4b24\nCMP             R2, R3                                                 ; +0xf2, 0x6f4b26\nBEQ             loc_6F4B2E                                             ; +0xf4, 0x6f4b28\nBLX             __stack_chk_fail                                       ; +0xf6, 0x6f4b2a\nADD             SP, SP, #0x20 ; ' '                                    ; +0xfa, 0x6f4b2e\nPOP.W           {R4-R10,PC}                                            ; +0xfc, 0x6f4b30", "xrefs": ["EditorUI::handleEditorAction @ 0x6f2028", "EditorUI::handleEditorAction @ 0x6f2038", "EditorCommandsPopup::onCommand @ 0x77a7ee"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}