; ; EditorUI::selectAllWithDirection from 0x1401115b0 to 0x14011175c (428 bytes) ; ; 3 xrefs: ; > EditorPauseLayer::onSelectAllLeft @ 0x1400dcee0 ; > EditorPauseLayer::onSelectAllRight @ 0x1400dcf00 ; > @ 0x1406c8f70 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x1401115b0 push rbp ; +0x2, 0x1401115b2 push rsi ; +0x3, 0x1401115b3 push rdi ; +0x4, 0x1401115b4 push r12 ; +0x5, 0x1401115b5 push r14 ; +0x7, 0x1401115b7 push r15 ; +0x9, 0x1401115b9 sub rsp, 20h ; +0xb, 0x1401115bb mov rax, [rcx+500h] ; +0xf, 0x1401115bf movzx r15d, dl ; +0x16, 0x1401115c6 mov rsi, rcx ; +0x1a, 0x1401115ca mov r14, [rax+0DB8h] ; +0x1d, 0x1401115cd call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x1401115d4 mov rcx, rax ; +0x2a, 0x1401115da lea rdx, [rsp+58h+arg_0] ; +0x2d, 0x1401115dd call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x32, 0x1401115e2 movss xmm3, cs:dword_140622B08 ; +0x38, 0x1401115e8 lea rcx, [rsp+58h+arg_18] ; +0x40, 0x1401115f0 movss xmm2, dword ptr [rsi+318h] ; +0x45, 0x1401115f5 movss xmm0, [rsp+58h+arg_4] ; +0x4d, 0x1401115fd movss xmm1, [rsp+58h+arg_0] ; +0x53, 0x140111603 mov rax, [rsi+500h] ; +0x59, 0x140111609 mulss xmm2, xmm3 ; +0x60, 0x140111610 mulss xmm0, xmm3 ; +0x64, 0x140111614 mov rbx, [rax+0FE8h] ; +0x68, 0x140111618 mulss xmm1, xmm3 ; +0x6f, 0x14011161f addss xmm2, xmm0 ; +0x73, 0x140111623 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x77, 0x140111627 lea rdx, [rsp+58h+arg_10] ; +0x7d, 0x14011162d mov rcx, rbx ; +0x82, 0x140111632 mov r8, rax ; +0x85, 0x140111635 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x88, 0x140111638 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x8e, 0x14011163e mov rcx, r14 ; +0x94, 0x140111644 xor edi, edi ; +0x97, 0x140111647 mov rbp, rax ; +0x99, 0x140111649 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x14011164c lea r12d, [rdi-1] ; +0xa2, 0x140111652 test eax, eax ; +0xa6, 0x140111656 jz loc_1401116E9 ; +0xa8, 0x140111658 xchg ax, ax ; +0xae, 0x14011165e mov edx, edi ; +0xb0, 0x140111660 mov rcx, r14 ; +0xb2, 0x140111662 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb5, 0x140111665 mov rcx, [rsi+500h] ; +0xbb, 0x14011166b mov rbx, rax ; +0xc2, 0x140111672 movsx r8d, word ptr [rax+4BAh] ; +0xc5, 0x140111675 movsx eax, word ptr [rax+4BCh] ; +0xcd, 0x14011167d movsx edx, word ptr [rcx+387Ah] ; +0xd4, 0x140111684 test eax, eax ; +0xdb, 0x14011168b cmovz eax, r12d ; +0xdd, 0x14011168d cmp dx, r12w ; +0xe1, 0x140111691 jz short loc_1401116A0 ; +0xe5, 0x140111695 cmp edx, r8d ; +0xe7, 0x140111697 jz short loc_1401116A0 ; +0xea, 0x14011169a cmp edx, eax ; +0xec, 0x14011169c jnz short loc_1401116D6 ; +0xee, 0x14011169e mov rax, [rbx] ; +0xf0, 0x1401116a0 mov rcx, rbx ; +0xf3, 0x1401116a3 mov rdx, [rax+0C8h] ; +0xf6, 0x1401116a6 call rdx ; +0xfd, 0x1401116ad test r15b, r15b ; +0xff, 0x1401116af jz short loc_1401116BF ; +0x102, 0x1401116b2 movss xmm0, dword ptr [rsp+58h+arg_10] ; +0x104, 0x1401116b4 comiss xmm0, dword ptr [rax] ; +0x10a, 0x1401116ba jmp short loc_1401116C8 ; +0x10d, 0x1401116bd movss xmm0, dword ptr [rax] ; +0x10f, 0x1401116bf comiss xmm0, dword ptr [rsp+58h+arg_10] ; +0x113, 0x1401116c3 jbe short loc_1401116D6 ; +0x118, 0x1401116c8 mov rdx, rbx ; +0x11a, 0x1401116ca mov rcx, rbp ; +0x11d, 0x1401116cd call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x120, 0x1401116d0 mov rcx, r14 ; +0x126, 0x1401116d6 inc edi ; +0x129, 0x1401116d9 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x12b, 0x1401116db cmp edi, eax ; +0x131, 0x1401116e1 jb loc_140111660 ; +0x133, 0x1401116e3 mov rdx, rbp ; +0x139, 0x1401116e9 mov rcx, rsi ; +0x13c, 0x1401116ec call EditorUI__processSelectObjects ; +0x13f, 0x1401116ef mov rcx, rsi ; +0x144, 0x1401116f4 call EditorUI__updateButtons ; +0x147, 0x1401116f7 mov rcx, [rsi+2B8h] ; +0x14c, 0x1401116fc mov [rsi+2A0h], r12d ; +0x153, 0x140111703 mov rax, [rcx] ; +0x15a, 0x14011170a call qword ptr [rax+148h] ; +0x15d, 0x14011170d test al, al ; +0x163, 0x140111713 jz short loc_140111735 ; +0x165, 0x140111715 mov rcx, [rsi+2B8h] ; +0x167, 0x140111717 xor edx, edx ; +0x16e, 0x14011171e mov rax, [rcx] ; +0x170, 0x140111720 call qword ptr [rax+140h] ; +0x173, 0x140111723 mov rcx, [rsi+2B8h] ; +0x179, 0x140111729 call GJRotationControl__finishTouch ; +0x180, 0x140111730 mov rcx, rsi ; +0x185, 0x140111735 call EditorUI__deactivateScaleControl ; +0x188, 0x140111738 mov rcx, rsi ; +0x18d, 0x14011173d call EditorUI__deactivateTransformControl ; +0x190, 0x140111740 mov rcx, rsi ; +0x195, 0x140111745 call EditorUI__updateObjectInfoLabel ; +0x198, 0x140111748 add rsp, 20h ; +0x19d, 0x14011174d pop r15 ; +0x1a1, 0x140111751 pop r14 ; +0x1a3, 0x140111753 pop r12 ; +0x1a5, 0x140111755 pop rdi ; +0x1a7, 0x140111757 pop rsi ; +0x1a8, 0x140111758 pop rbp ; +0x1a9, 0x140111759 pop rbx ; +0x1aa, 0x14011175a retn ; +0x1ab, 0x14011175b