; ; cocos2d::extension::CCScrollView::ccTouchMoved from 0x180013700 to 0x180013b19 (1049 bytes) ; ; 7 xrefs: ; > cocos2d::extension::CCTableView::ccTouchMoved @ 0x1800162b9 ; > @ 0x18002a968 ; > @ 0x180031070 ; > @ 0x1800310a8 ; > @ 0x1800310bc ; > @ 0x180032408 ; > @ 0x18004c4b8 ; ; 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 12:15:40 +0000 ; mov [rsp-18h+arg_10], rbx ; +0x0, 0x180013700 push rbp ; +0x5, 0x180013705 push rsi ; +0x6, 0x180013706 push rdi ; +0x7, 0x180013707 mov rbp, rsp ; +0x8, 0x180013708 sub rsp, 80h ; +0xb, 0x18001370b lea rsi, [rcx-140h] ; +0x12, 0x180013712 mov rdi, rcx ; +0x19, 0x180013719 mov rax, [rsi] ; +0x1c, 0x18001371c mov rcx, rsi ; +0x1f, 0x18001371f mov rbx, rdx ; +0x22, 0x180013722 call qword ptr [rax+158h] ; +0x25, 0x180013725 test al, al ; +0x2b, 0x18001372b jz loc_180013A68 ; +0x2d, 0x18001372d mov rcx, [rdi+0B8h] ; +0x33, 0x180013733 mov rdx, rbx ; +0x3a, 0x18001373a call cs:?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x3d, 0x18001373d test al, al ; +0x43, 0x180013743 jz loc_180013A68 ; +0x45, 0x180013745 mov rcx, [rdi+0B8h] ; +0x4b, 0x18001374b movaps [rsp+80h+var_10], xmm6 ; +0x52, 0x180013752 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x57, 0x180013757 lea rbx, [rdi+74h] ; +0x5d, 0x18001375d cmp eax, 1 ; +0x61, 0x180013761 jnz loc_180013A7B ; +0x64, 0x180013764 cmp byte ptr [rbx], 0 ; +0x6a, 0x18001376a jz loc_180013A7B ; +0x6d, 0x18001376d mov [rsp+80h+arg_8], r14 ; +0x73, 0x180013773 lea rcx, [rbp+arg_0] ; +0x7b, 0x18001377b movaps [rsp+80h+var_20], xmm7 ; +0x7f, 0x18001377f call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x84, 0x180013784 lea rcx, [rbp+arg_18] ; +0x8a, 0x18001378a call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x8e, 0x18001378e lea rcx, [rbp+var_50] ; +0x94, 0x180013794 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x98, 0x180013798 lea rcx, [rbp+var_48] ; +0x9e, 0x18001379e call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xa2, 0x1800137a2 lea rcx, [rbp+var_30] ; +0xa8, 0x1800137a8 call cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void) ; +0xac, 0x1800137ac lea rdx, [rbp+var_40] ; +0xb2, 0x1800137b2 mov rcx, rsi ; +0xb6, 0x1800137b6 call ?getViewRect@CCScrollView@extension@cocos2d@@IEAA?AVCCRect@3@XZ; cocos2d::extension::CCScrollView::getViewRect(void) ; +0xb9, 0x1800137b9 mov rdx, rax ; +0xbe, 0x1800137be lea rcx, [rbp+var_30] ; +0xc1, 0x1800137c1 call cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xc5, 0x1800137c5 mov rcx, [rdi+0B8h] ; +0xcb, 0x1800137cb xor edx, edx ; +0xd2, 0x1800137d2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xd4, 0x1800137d4 lea rdx, [rbp+var_58] ; +0xda, 0x1800137da mov rcx, rsi ; +0xde, 0x1800137de mov r8, rax ; +0xe1, 0x1800137e1 call cs:?convertTouchToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@PEAVCCTouch@2@@Z; cocos2d::CCNode::convertTouchToNodeSpace(cocos2d::CCTouch *) ; +0xe4, 0x1800137e4 mov rdx, rax ; +0xea, 0x1800137ea lea rcx, [rbp+arg_18] ; +0xed, 0x1800137ed call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xf1, 0x1800137f1 lea r8, [rdi+0A8h] ; +0xf7, 0x1800137f7 lea rdx, [rbp+var_58] ; +0xfe, 0x1800137fe lea rcx, [rbp+arg_18] ; +0x102, 0x180013802 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x106, 0x180013806 lea rdx, [rbp+var_58] ; +0x10c, 0x18001380c lea rcx, [rbp+arg_0] ; +0x110, 0x180013810 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x114, 0x180013814 mov eax, [rdi+70h] ; +0x11a, 0x18001381a lea rbx, [rdi+70h] ; +0x11d, 0x18001381d cmp eax, 1 ; +0x121, 0x180013821 jnz short loc_18001382D ; +0x124, 0x180013824 movss xmm7, [rbp+arg_4] ; +0x126, 0x180013826 jmp short loc_18001386A ; +0x12b, 0x18001382b test eax, eax ; +0x12d, 0x18001382d jnz short loc_180013838 ; +0x12f, 0x18001382f movss xmm7, [rbp+arg_0] ; +0x131, 0x180013831 jmp short loc_18001386A ; +0x136, 0x180013836 movss xmm0, [rbp+arg_4] ; +0x138, 0x180013838 movss xmm1, [rbp+arg_0] ; +0x13d, 0x18001383d mulss xmm0, xmm0 ; +0x142, 0x180013842 mulss xmm1, xmm1 ; +0x146, 0x180013846 addss xmm1, xmm0 ; +0x14a, 0x18001384a xorps xmm0, xmm0 ; +0x14e, 0x18001384e ucomiss xmm0, xmm1 ; +0x151, 0x180013851 ja short loc_18001385F ; +0x154, 0x180013854 xorps xmm7, xmm7 ; +0x156, 0x180013856 sqrtss xmm7, xmm1 ; +0x159, 0x180013859 jmp short loc_18001386A ; +0x15d, 0x18001385d movaps xmm0, xmm1; X ; +0x15f, 0x18001385f call sqrtf ; +0x162, 0x180013862 movaps xmm7, xmm0 ; +0x167, 0x180013867 cmp byte ptr [rdi+88h], 0 ; +0x16a, 0x18001386a jnz short loc_1800138EB ; +0x171, 0x180013871 call cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x173, 0x180013873 mov rcx, rax ; +0x179, 0x180013879 call cs:?getScaleY@CCEGLViewProtocol@cocos2d@@QEBAMXZ; cocos2d::CCEGLViewProtocol::getScaleY(void) ; +0x17c, 0x18001387c movaps xmm6, xmm0 ; +0x182, 0x180013882 call cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x185, 0x180013885 mov rcx, rax ; +0x18b, 0x18001388b call cs:?getScaleX@CCEGLViewProtocol@cocos2d@@QEBAMXZ; cocos2d::CCEGLViewProtocol::getScaleX(void) ; +0x18e, 0x18001388e addss xmm6, xmm0 ; +0x194, 0x180013894 mulss xmm6, cs:dword_18002BBD8 ; +0x198, 0x180013898 mulss xmm6, xmm7 ; +0x1a0, 0x1800138a0 call cs:?getDPI@CCDevice@cocos2d@@SAHXZ; cocos2d::CCDevice::getDPI(void) ; +0x1a4, 0x1800138a4 movss xmm0, cs:dword_18002BBC4 ; +0x1aa, 0x1800138aa xorps xmm1, xmm1 ; +0x1b2, 0x1800138b2 cvtsi2ss xmm1, eax ; +0x1b5, 0x1800138b5 divss xmm6, xmm1 ; +0x1b9, 0x1800138b9 andps xmm6, cs:xmmword_18002BCE0 ; +0x1bd, 0x1800138bd comiss xmm0, xmm6 ; +0x1c4, 0x1800138c4 ja loc_180013A56 ; +0x1c7, 0x1800138c7 cmp byte ptr [rdi+88h], 0 ; +0x1cd, 0x1800138cd lea rbx, [rdi+70h] ; +0x1d4, 0x1800138d4 jnz short loc_1800138EB ; +0x1d8, 0x1800138d8 lea rdx, unk_18004A610 ; +0x1da, 0x1800138da lea rcx, [rbp+arg_0] ; +0x1e1, 0x1800138e1 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1e5, 0x1800138e5 lea rdx, [rbp+arg_18] ; +0x1eb, 0x1800138eb lea rcx, [rdi+0A8h] ; +0x1ef, 0x1800138ef call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1f6, 0x1800138f6 lea r8, [rbp+arg_18] ; +0x1fc, 0x1800138fc mov byte ptr [rdi+88h], 1 ; +0x200, 0x180013900 lea rdx, [rbp+var_58] ; +0x207, 0x180013907 mov rcx, rsi ; +0x20b, 0x18001390b call cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x20e, 0x18001390e mov rdx, rax ; +0x214, 0x180013914 lea rcx, [rbp+var_30] ; +0x217, 0x180013917 call cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x21b, 0x18001391b test al, al ; +0x221, 0x180013921 jz loc_180013A56 ; +0x223, 0x180013923 mov ecx, [rbx] ; +0x229, 0x180013929 test ecx, ecx ; +0x22b, 0x18001392b jz short loc_18001393E ; +0x22d, 0x18001392d cmp ecx, 1 ; +0x22f, 0x18001392f jnz short loc_18001395D ; +0x232, 0x180013932 movss xmm2, [rbp+arg_4] ; +0x234, 0x180013934 xorps xmm1, xmm1 ; +0x239, 0x180013939 jmp short loc_180013946 ; +0x23c, 0x18001393c movss xmm1, [rbp+arg_0] ; +0x23e, 0x18001393e xorps xmm2, xmm2 ; +0x243, 0x180013943 lea rcx, [rbp+var_58] ; +0x246, 0x180013946 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x24a, 0x18001394a mov rdx, rax ; +0x250, 0x180013950 lea rcx, [rbp+arg_0] ; +0x253, 0x180013953 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x257, 0x180013957 lea rdx, [rdi+8Ch] ; +0x25d, 0x18001395d lea rcx, [rbp+var_50] ; +0x264, 0x180013964 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x268, 0x180013968 lea rdx, [rdi+94h] ; +0x26e, 0x18001396e lea rcx, [rbp+var_48] ; +0x275, 0x180013975 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x279, 0x180013979 mov rcx, [rdi+80h] ; +0x27f, 0x18001397f mov rax, [rcx] ; +0x286, 0x180013986 call qword ptr [rax+0C8h] ; +0x289, 0x180013989 mov rcx, [rdi+80h] ; +0x28f, 0x18001398f movss xmm7, [rbp+arg_0] ; +0x296, 0x180013996 addss xmm7, dword ptr [rax] ; +0x29b, 0x18001399b mov rax, [rcx] ; +0x29f, 0x18001399f call qword ptr [rax+0C8h] ; +0x2a2, 0x1800139a2 movss xmm6, [rbp+arg_4] ; +0x2a8, 0x1800139a8 lea rcx, [rdi+0A0h] ; +0x2ad, 0x1800139ad lea rdx, [rbp+arg_0] ; +0x2b4, 0x1800139b4 addss xmm6, dword ptr [rax+4] ; +0x2b8, 0x1800139b8 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x2bd, 0x1800139bd movaps xmm2, xmm6 ; +0x2c3, 0x1800139c3 lea rcx, [rbp+var_40] ; +0x2c6, 0x1800139c6 movaps xmm1, xmm7 ; +0x2ca, 0x1800139ca call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2cd, 0x1800139cd cmp byte ptr [rdi+9Ch], 0 ; +0x2d3, 0x1800139d3 mov rbx, rax ; +0x2da, 0x1800139da jnz short loc_180013A2D ; +0x2dd, 0x1800139dd lea rdx, [rbp+var_58] ; +0x2df, 0x1800139df lea rcx, [rdi-140h] ; +0x2e3, 0x1800139e3 call ?minContainerOffset@CCScrollView@extension@cocos2d@@QEAA?AVCCPoint@3@XZ; cocos2d::extension::CCScrollView::minContainerOffset(void) ; +0x2ea, 0x1800139ea xorps xmm2, xmm2 ; +0x2ef, 0x1800139ef lea rcx, [rbp+var_60] ; +0x2f2, 0x1800139f2 xorps xmm1, xmm1 ; +0x2f6, 0x1800139f6 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2f9, 0x1800139f9 movss xmm1, [rbp+var_60] ; +0x2ff, 0x1800139ff minss xmm1, dword ptr [rbx] ; +0x304, 0x180013a04 movss xmm0, [rbp+var_58] ; +0x308, 0x180013a08 maxss xmm0, xmm1 ; +0x30d, 0x180013a0d movss xmm1, [rbp+var_5C] ; +0x311, 0x180013a11 minss xmm1, dword ptr [rbx+4] ; +0x316, 0x180013a16 movss dword ptr [rbx], xmm0 ; +0x31b, 0x180013a1b movss xmm0, [rbp+var_54] ; +0x31f, 0x180013a1f maxss xmm0, xmm1 ; +0x324, 0x180013a24 movss dword ptr [rbx+4], xmm0 ; +0x328, 0x180013a28 mov rcx, [rdi+80h] ; +0x32d, 0x180013a2d mov rdx, rbx ; +0x334, 0x180013a34 mov rax, [rcx] ; +0x337, 0x180013a37 call qword ptr [rax+0B8h] ; +0x33a, 0x180013a3a mov rcx, [rdi+68h] ; +0x340, 0x180013a40 test rcx, rcx ; +0x344, 0x180013a44 jz short loc_180013A56 ; +0x347, 0x180013a47 mov rax, [rcx] ; +0x349, 0x180013a49 lea rdx, [rdi-140h] ; +0x34c, 0x180013a4c call qword ptr [rax+8] ; +0x353, 0x180013a53 movaps xmm7, [rsp+80h+var_20] ; +0x356, 0x180013a56 mov r14, [rsp+80h+arg_8] ; +0x35b, 0x180013a5b movaps xmm6, [rsp+80h+var_10] ; +0x363, 0x180013a63 mov rbx, [rsp+80h+arg_10] ; +0x368, 0x180013a68 add rsp, 80h ; +0x370, 0x180013a70 pop rdi ; +0x377, 0x180013a77 pop rsi ; +0x378, 0x180013a78 pop rbp ; +0x379, 0x180013a79 retn ; +0x37a, 0x180013a7a mov rcx, [rdi+0B8h] ; +0x37b, 0x180013a7b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x382, 0x180013a82 cmp eax, 2 ; +0x388, 0x180013a88 jnz short loc_180013A63 ; +0x38b, 0x180013a8b cmp byte ptr [rbx], 0 ; +0x38d, 0x180013a8d jnz short loc_180013A63 ; +0x390, 0x180013a90 mov rcx, [rdi+0B8h] ; +0x392, 0x180013a92 mov edx, 1 ; +0x399, 0x180013a99 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39e, 0x180013a9e mov rcx, [rdi+80h] ; +0x3a4, 0x180013aa4 lea rdx, [rbp+arg_0] ; +0x3ab, 0x180013aab mov r8, rax ; +0x3af, 0x180013aaf call cs:?convertTouchToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@PEAVCCTouch@2@@Z; cocos2d::CCNode::convertTouchToNodeSpace(cocos2d::CCTouch *) ; +0x3b2, 0x180013ab2 mov rcx, [rdi+0B8h] ; +0x3b8, 0x180013ab8 xor edx, edx ; +0x3bf, 0x180013abf mov rbx, rax ; +0x3c1, 0x180013ac1 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c4, 0x180013ac4 mov rcx, [rdi+80h] ; +0x3ca, 0x180013aca lea rdx, [rbp+arg_18] ; +0x3d1, 0x180013ad1 mov r8, rax ; +0x3d5, 0x180013ad5 call cs:?convertTouchToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@PEAVCCTouch@2@@Z; cocos2d::CCNode::convertTouchToNodeSpace(cocos2d::CCTouch *) ; +0x3d8, 0x180013ad8 mov rcx, rax ; +0x3de, 0x180013ade mov rdx, rbx ; +0x3e1, 0x180013ae1 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x3e4, 0x180013ae4 mov rcx, [rdi+80h] ; +0x3ea, 0x180013aea movaps xmm6, xmm0 ; +0x3f1, 0x180013af1 mov rax, [rcx] ; +0x3f4, 0x180013af4 call qword ptr [rax+0A8h] ; +0x3f7, 0x180013af7 mulss xmm0, xmm6 ; +0x3fd, 0x180013afd mov rcx, rsi; this ; +0x401, 0x180013b01 divss xmm0, dword ptr [rdi+0B0h] ; +0x404, 0x180013b04 movaps xmm1, xmm0; float ; +0x40c, 0x180013b0c call ?setZoomScale@CCScrollView@extension@cocos2d@@QEAAXM@Z; cocos2d::extension::CCScrollView::setZoomScale(float) ; +0x40f, 0x180013b0f jmp loc_180013A63 ; +0x414, 0x180013b14