; ; CCTextInputNode::ccTouchBegan from 0x140051330 to 0x140051537 (519 bytes) ; ; 2 xrefs: ; > @ 0x1405323c0 ; > @ 0x1406c4d94 ; ; 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 ; mov [rsp-18h+arg_8], rbx ; +0x0, 0x140051330 push rbp ; +0x5, 0x140051335 push rsi ; +0x6, 0x140051336 push rdi ; +0x7, 0x140051337 mov rbp, rsp ; +0x8, 0x140051338 sub rsp, 50h ; +0xb, 0x14005133b mov rax, rdx ; +0xf, 0x14005133f mov rsi, rcx ; +0x12, 0x140051342 mov rcx, rax ; +0x15, 0x140051345 lea rdx, [rbp+arg_0] ; +0x18, 0x140051348 call cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x1c, 0x14005134c call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x140051352 mov rcx, rax ; +0x28, 0x140051358 lea r8, [rbp+arg_0] ; +0x2b, 0x14005135b lea rdx, [rbp+var_30] ; +0x2f, 0x14005135f call cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x33, 0x140051363 mov rdx, rax ; +0x39, 0x140051369 lea rcx, [rbp+arg_0] ; +0x3c, 0x14005136c call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x40, 0x140051370 lea rdi, [rsi-140h] ; +0x46, 0x140051376 mov rcx, rdi ; +0x4d, 0x14005137d lea r8, [rbp+arg_0] ; +0x50, 0x140051380 lea rdx, [rbp+var_30] ; +0x54, 0x140051384 call cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x58, 0x140051388 mov rdx, rax ; +0x5e, 0x14005138e lea rcx, [rbp+arg_0] ; +0x61, 0x140051391 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x65, 0x140051395 lea r8, [rbp+arg_0] ; +0x6b, 0x14005139b mov rcx, rdi ; +0x6f, 0x14005139f lea rdx, [rbp+var_30] ; +0x72, 0x1400513a2 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x76, 0x1400513a6 mov rdx, rax ; +0x7c, 0x1400513ac lea rcx, [rbp+arg_0] ; +0x7f, 0x1400513af call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x83, 0x1400513b3 mov rcx, [rsi+0E8h] ; +0x89, 0x1400513b9 mov rax, [rcx] ; +0x90, 0x1400513c0 call qword ptr [rax+118h] ; +0x93, 0x1400513c3 mov rdx, rax ; +0x99, 0x1400513c9 lea rcx, [rbp+var_30] ; +0x9c, 0x1400513cc call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xa0, 0x1400513d0 lea rcx, [rbp+var_18] ; +0xa6, 0x1400513d6 mov rbx, rax ; +0xaa, 0x1400513da call cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void) ; +0xad, 0x1400513dd mov rdx, [rdi] ; +0xb3, 0x1400513e3 mov rcx, rdi ; +0xb6, 0x1400513e6 call qword ptr [rdx+0C8h] ; +0xb9, 0x1400513e9 mov rdx, rax ; +0xbf, 0x1400513ef lea rcx, [rbp+var_18] ; +0xc2, 0x1400513f2 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc6, 0x1400513f6 mov rdx, [rdi] ; +0xcc, 0x1400513fc mov rcx, rdi ; +0xcf, 0x1400513ff call qword ptr [rdx+130h] ; +0xd2, 0x140051402 mov rdx, rax ; +0xd8, 0x140051408 lea rcx, [rbp+var_10] ; +0xdb, 0x14005140b call cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0xdf, 0x14005140f movss xmm1, [rbp+var_18] ; +0xe5, 0x140051415 mov rcx, rdi ; +0xea, 0x14005141a movss xmm0, [rbp+var_10] ; +0xed, 0x14005141d mulss xmm0, dword ptr [rbx] ; +0xf2, 0x140051422 mov rax, [rdi] ; +0xf6, 0x140051426 subss xmm1, xmm0 ; +0xf9, 0x140051429 movss xmm0, [rbp+var_C] ; +0xfd, 0x14005142d movss [rbp+var_18], xmm1 ; +0x102, 0x140051432 mulss xmm0, dword ptr [rbx+4] ; +0x107, 0x140051437 movss xmm1, [rbp+var_14] ; +0x10c, 0x14005143c subss xmm1, xmm0 ; +0x111, 0x140051441 movss [rbp+var_14], xmm1 ; +0x115, 0x140051445 call qword ptr [rax+1E8h] ; +0x11a, 0x14005144a test rax, rax ; +0x120, 0x140051450 jz short loc_14005147C ; +0x123, 0x140051453 mov rax, [rdi] ; +0x125, 0x140051455 mov rcx, rdi ; +0x128, 0x140051458 call qword ptr [rax+1E8h] ; +0x12b, 0x14005145b mov rcx, rax ; +0x131, 0x140051461 mov rdx, [rax] ; +0x134, 0x140051464 call qword ptr [rdx+0C8h] ; +0x137, 0x140051467 mov rdx, rax ; +0x13d, 0x14005146d lea rcx, [rbp+var_30] ; +0x140, 0x140051470 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x144, 0x140051474 jmp short loc_14005148C ; +0x14a, 0x14005147a xorps xmm2, xmm2 ; +0x14c, 0x14005147c lea rcx, [rbp+var_20] ; +0x14f, 0x14005147f xorps xmm1, xmm1 ; +0x153, 0x140051483 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x156, 0x140051486 mov rdx, rax ; +0x15c, 0x14005148c lea rcx, [rbp+arg_18] ; +0x15f, 0x14005148f call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x163, 0x140051493 lea r8, [rbp+arg_18] ; +0x169, 0x140051499 lea rdx, [rbp+var_30] ; +0x16d, 0x14005149d lea rcx, [rbp+var_18] ; +0x171, 0x1400514a1 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x175, 0x1400514a5 lea rdx, [rbp+var_30] ; +0x17b, 0x1400514ab lea rcx, [rbp+var_18] ; +0x17f, 0x1400514af call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x183, 0x1400514b3 lea rdx, [rbp+arg_0] ; +0x189, 0x1400514b9 lea rcx, [rbp+var_18] ; +0x18d, 0x1400514bd call cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x191, 0x1400514c1 test al, al ; +0x197, 0x1400514c7 jz short loc_140051528 ; +0x199, 0x1400514c9 mov rcx, [rsi+0F0h] ; +0x19b, 0x1400514cb test rcx, rcx ; +0x1a2, 0x1400514d2 jz short loc_1400514E4 ; +0x1a5, 0x1400514d5 mov rax, [rcx] ; +0x1a7, 0x1400514d7 mov rdx, rdi ; +0x1aa, 0x1400514da call qword ptr [rax+28h] ; +0x1ad, 0x1400514dd test al, al ; +0x1b0, 0x1400514e0 jz short loc_140051528 ; +0x1b2, 0x1400514e2 mov rax, [rdi] ; +0x1b4, 0x1400514e4 mov dl, 1 ; +0x1b7, 0x1400514e7 mov rcx, rdi ; +0x1b9, 0x1400514e9 call qword ptr [rax+3F8h] ; +0x1bc, 0x1400514ec lea rdx, [rbp+var_18] ; +0x1c2, 0x1400514f2 lea rcx, [rbp+var_30] ; +0x1c6, 0x1400514f6 call cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x1ca, 0x1400514fa lea rdx, [rbp+arg_0] ; +0x1d0, 0x140051500 lea rcx, [rbp+var_20] ; +0x1d4, 0x140051504 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1d8, 0x140051508 mov rdx, rax ; +0x1de, 0x14005150e mov rcx, rdi ; +0x1e1, 0x140051511 call CCTextInputNode__updateCursorPosition ; +0x1e4, 0x140051514 mov al, 1 ; +0x1e9, 0x140051519 mov rbx, [rsp+50h+arg_8] ; +0x1eb, 0x14005151b add rsp, 50h ; +0x1f0, 0x140051520 pop rdi ; +0x1f4, 0x140051524 pop rsi ; +0x1f5, 0x140051525 pop rbp ; +0x1f6, 0x140051526 retn ; +0x1f7, 0x140051527 mov rbx, [rsp+50h+arg_8] ; +0x1f8, 0x140051528 xor al, al ; +0x1fd, 0x14005152d add rsp, 50h ; +0x1ff, 0x14005152f pop rdi ; +0x203, 0x140051533 pop rsi ; +0x204, 0x140051534 pop rbp ; +0x205, 0x140051535 retn ; +0x206, 0x140051536