; ; CCTextInputNode::rightClick from 0x140059150 to 0x140059350 (512 bytes) ; ; 2 xrefs: ; > @ 0x14070d568 ; > @ 0x14091052c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:25:41 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x140059150 push rbp ; +0x5, 0x140059155 push rsi ; +0x6, 0x140059156 push rdi ; +0x7, 0x140059157 sub rsp, 60h ; +0x8, 0x140059158 movaps [rsp+78h+var_28], xmm6 ; +0xc, 0x14005915c lea rdi, [rcx-160h] ; +0x11, 0x140059161 mov rbp, rcx ; +0x18, 0x140059168 movaps [rsp+78h+var_38], xmm7 ; +0x1b, 0x14005916b mov rcx, rdi ; +0x20, 0x140059170 movaps xmm6, xmm2 ; +0x23, 0x140059173 movaps xmm7, xmm1 ; +0x26, 0x140059176 call CCTextInputNode__isVisibleInTree ; +0x29, 0x140059179 test al, al ; +0x2e, 0x14005917e jz loc_140059334 ; +0x30, 0x140059180 mov rax, [rdi] ; +0x36, 0x140059186 mov rcx, rdi ; +0x39, 0x140059189 call qword ptr [rax+390h] ; +0x3c, 0x14005918c test al, al ; +0x42, 0x140059192 jz loc_140059334 ; +0x44, 0x140059194 movaps xmm2, xmm6 ; +0x4a, 0x14005919a lea rcx, [rsp+78h+arg_0] ; +0x4d, 0x14005919d movaps xmm1, xmm7 ; +0x55, 0x1400591a5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x58, 0x1400591a8 xor esi, esi ; +0x5e, 0x1400591ae test rdi, rdi ; +0x60, 0x1400591b0 jz short loc_140059222 ; +0x63, 0x1400591b3 mov rax, [rdi] ; +0x65, 0x1400591b5 mov rcx, rdi ; +0x68, 0x1400591b8 call qword ptr [rax+1F8h] ; +0x6b, 0x1400591bb mov rbx, rax ; +0x71, 0x1400591c1 test rax, rax ; +0x74, 0x1400591c4 jz short loc_140059222 ; +0x77, 0x1400591c7 nop dword ptr [rax+00000000h] ; +0x79, 0x1400591c9 lea r9, ??_R0?AVCCTouchClipper@cocos2d@@@8; cocos2d::CCTouchClipper `RTTI Type Descriptor' ; +0x80, 0x1400591d0 mov [rsp+78h+var_58], esi ; +0x87, 0x1400591d7 lea r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x8b, 0x1400591db xor edx, edx ; +0x92, 0x1400591e2 mov rcx, rbx ; +0x94, 0x1400591e4 call __RTDynamicCast ; +0x97, 0x1400591e7 test rax, rax ; +0x9c, 0x1400591ec jz short loc_14005920E ; +0x9f, 0x1400591ef mov rcx, [rax] ; +0xa1, 0x1400591f1 lea rdx, [rsp+78h+arg_0] ; +0xa4, 0x1400591f4 mov r8, [rcx+8] ; +0xac, 0x1400591fc mov rcx, rax ; +0xb0, 0x140059200 call r8 ; +0xb3, 0x140059203 test al, al ; +0xb6, 0x140059206 jz loc_140059334 ; +0xb8, 0x140059208 mov rax, [rbx] ; +0xbe, 0x14005920e mov rcx, rbx ; +0xc1, 0x140059211 call qword ptr [rax+1F8h] ; +0xc4, 0x140059214 mov rbx, rax ; +0xca, 0x14005921a test rax, rax ; +0xcd, 0x14005921d jnz short loc_1400591D0 ; +0xd0, 0x140059220 lea rdx, [rsp+78h+arg_0] ; +0xd2, 0x140059222 lea rcx, [rsp+78h+arg_18] ; +0xda, 0x14005922a call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe2, 0x140059232 mov rdx, rax ; +0xe8, 0x140059238 mov rcx, rdi ; +0xeb, 0x14005923b call CCTextInputNode__containsTouchPoint ; +0xee, 0x14005923e test al, al ; +0xf3, 0x140059243 jz loc_140059334 ; +0xf5, 0x140059245 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xfb, 0x14005924b test rdi, rdi ; +0x101, 0x140059251 lea rbx, [rdi+140h] ; +0x104, 0x140059254 cmovz rbx, rsi ; +0x10b, 0x14005925b mov rcx, [rax] ; +0x10f, 0x14005925f mov r8, [rcx+90h] ; +0x112, 0x140059262 mov rcx, rax ; +0x119, 0x140059269 call r8 ; +0x11c, 0x14005926c mov rcx, rax ; +0x11f, 0x14005926f mov rdx, rbx ; +0x122, 0x140059272 call cs:?findHandler@CCTouchDispatcher@cocos2d@@QEAAPEAVCCTouchHandler@2@PEAVCCTouchDelegate@2@@Z; cocos2d::CCTouchDispatcher::findHandler(cocos2d::CCTouchDelegate *) ; +0x125, 0x140059275 mov rsi, rax ; +0x12b, 0x14005927b test rax, rax ; +0x12e, 0x14005927e jz short loc_1400592AF ; +0x131, 0x140059281 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x133, 0x140059283 mov rcx, [rax] ; +0x139, 0x140059289 mov rdx, [rcx+90h] ; +0x13c, 0x14005928c mov rcx, rax ; +0x143, 0x140059293 call rdx ; +0x146, 0x140059296 mov rcx, rsi ; +0x148, 0x140059298 mov ebx, [rax+80h] ; +0x14b, 0x14005929b call cs:?getPriority@CCTouchHandler@cocos2d@@QEAAHXZ; cocos2d::CCTouchHandler::getPriority(void) ; +0x151, 0x1400592a1 cmp eax, ebx ; +0x157, 0x1400592a7 jg loc_140059334 ; +0x159, 0x1400592a9 mov rcx, [rbp+0F8h] ; +0x15f, 0x1400592af test rcx, rcx ; +0x166, 0x1400592b6 jz short loc_1400592C8 ; +0x169, 0x1400592b9 mov rax, [rcx] ; +0x16b, 0x1400592bb mov rdx, rdi ; +0x16e, 0x1400592be call qword ptr [rax+28h] ; +0x171, 0x1400592c1 test al, al ; +0x174, 0x1400592c4 jz short loc_140059334 ; +0x176, 0x1400592c6 lea rdx, unk_140909B68 ; +0x178, 0x1400592c8 lea rcx, [rsp+78h+var_48] ; +0x17f, 0x1400592cf call cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x184, 0x1400592d4 lea rdx, [rsp+78h+arg_0] ; +0x18a, 0x1400592da lea rcx, [rsp+78h+arg_18] ; +0x192, 0x1400592e2 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x19a, 0x1400592ea mov rdx, rax ; +0x1a0, 0x1400592f0 mov rcx, rdi ; +0x1a3, 0x1400592f3 call CCTextInputNode__updateCursorPosition ; +0x1a6, 0x1400592f6 cmp byte ptr [rbp+74h], 0 ; +0x1ab, 0x1400592fb jnz short loc_14005930F ; +0x1af, 0x1400592ff mov rax, [rdi] ; +0x1b1, 0x140059301 mov dl, 1 ; +0x1b4, 0x140059304 mov rcx, rdi ; +0x1b6, 0x140059306 call qword ptr [rax+408h] ; +0x1b9, 0x140059309 lea rdx, [rsp+78h+arg_0] ; +0x1bf, 0x14005930f lea rcx, [rsp+78h+arg_18] ; +0x1c7, 0x140059317 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1cf, 0x14005931f mov rdx, rax ; +0x1d5, 0x140059325 mov rcx, rdi ; +0x1d8, 0x140059328 call CCTextInputNode__openEditMenu ; +0x1db, 0x14005932b mov al, 1 ; +0x1e0, 0x140059330 jmp short loc_140059336 ; +0x1e2, 0x140059332 xor al, al ; +0x1e4, 0x140059334 mov rbx, [rsp+78h+arg_8] ; +0x1e6, 0x140059336 movaps xmm6, [rsp+78h+var_28] ; +0x1ee, 0x14005933e movaps xmm7, [rsp+78h+var_38] ; +0x1f3, 0x140059343 add rsp, 60h ; +0x1f8, 0x140059348 pop rdi ; +0x1fc, 0x14005934c pop rsi ; +0x1fd, 0x14005934d pop rbp ; +0x1fe, 0x14005934e retn ; +0x1ff, 0x14005934f