{"type": "func", "start": 5369018400, "end": 5369018783, "name": "CCScrollLayerExt::ccTouchMoved", "pseudocode": "// \n// CCScrollLayerExt::ccTouchMoved from 0x14004b820 to 0x14004b99f (383 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14070b138\n// > <???> @ 0x140885ee8\n// > <???> @ 0x140885f1c\n// > <???> @ 0x14090fe54\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:33 +0000\n// \n\nvoid __fastcall CCScrollLayerExt::ccTouchMoved(__int64 a1, __int64 a2)\n{\n  __int64 v3; // r14\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rdi\n  __int64 v9; // rbx\n  __int64 v10; // rax\n  __int64 v11; // rcx\n  char v12; // [rsp+50h] [rbp+8h] BYREF\n  float v13; // [rsp+54h] [rbp+Ch]\n  char v14; // [rsp+58h] [rbp+10h] BYREF\n  int v15; // [rsp+68h] [rbp+20h] BYREF\n  int v16; // [rsp+6Ch] [rbp+24h]\n\n  *(_BYTE *)(a1 + 128) = 1;\n  v3 = a1 - 320;\n  cocos2d::CCTouch::getLocationInView(a2, &v14);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = cocos2d::CCDirector::convertToGL(v5, &v12, &v14);\n  cocos2d::CCPoint::operator=(&v14, v6);\n  if ( a2 == *(_QWORD *)(a1 + 96) )\n  {\n    cocos2d::CCPoint::operator-(&v14, &v15, a1 + 104);\n    if ( *(_BYTE *)(a1 + 172) )\n    {\n      v16 = 0;\n    }\n    else if ( *(_BYTE *)(a1 + 171) )\n    {\n      v15 = 0;\n    }\n    v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 160) + 200LL))(*(_QWORD *)(a1 + 160));\n    cocos2d::CCPoint::operator+(v7, &v12, &v15);\n    v8 = *(_QWORD *)(v3 + 480);\n    v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 320LL))(v3);\n    v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 320LL))(v8);\n    if ( (float)((float)((float)(*(float *)(v9 + 4) - *(float *)(v10 + 4)) - *(float *)(v3 + 496)) - *(float *)(a1 + 184)) <= v13 )\n    {\n      if ( v13 > (float)(*(float *)(a1 + 188) + *(float *)(a1 + 180)) )\n        v13 = *(float *)(a1 + 188) + *(float *)(a1 + 180);\n    }\n    else\n    {\n      v13 = (float)((float)(*(float *)(v9 + 4) - *(float *)(v10 + 4)) - *(float *)(v3 + 496)) - *(float *)(a1 + 184);\n    }\n    (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 160) + 184LL))(*(_QWORD *)(a1 + 160), &v12);\n    *(_BYTE *)(a1 + 129) = 1;\n    cocos2d::CCPoint::operator=(a1 + 104, &v14);\n    v11 = *(_QWORD *)(a1 + 152);\n    if ( v11 )\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 16LL))(v11, v3);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchMoved from 0x14004b820 to 0x14004b99f (383 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14070b138\n; > <???> @ 0x140885ee8\n; > <???> @ 0x140885f1c\n; > <???> @ 0x14090fe54\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:33 +0000\n; \npush    rbx                                                            ; +0x0, 0x14004b820\npush    rsi                                                            ; +0x2, 0x14004b822\npush    r14                                                            ; +0x3, 0x14004b823\nsub     rsp, 30h                                                       ; +0x5, 0x14004b825\nmov     rbx, rdx                                                       ; +0x9, 0x14004b829\nmov     byte ptr [rcx+80h], 1                                          ; +0xc, 0x14004b82c\nlea     r14, [rcx-140h]                                                ; +0x13, 0x14004b833\nmov     rsi, rcx                                                       ; +0x1a, 0x14004b83a\nmov     rcx, rbx                                                       ; +0x1d, 0x14004b83d\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x20, 0x14004b840\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x25, 0x14004b845\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2b, 0x14004b84b\nmov     rcx, rax                                                       ; +0x31, 0x14004b851\nlea     r8, [rsp+48h+arg_8]                                            ; +0x34, 0x14004b854\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x39, 0x14004b859\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x3e, 0x14004b85e\nmov     rdx, rax                                                       ; +0x44, 0x14004b864\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x47, 0x14004b867\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x4c, 0x14004b86c\ncmp     rbx, [rsi+60h]                                                 ; +0x52, 0x14004b872\njnz     loc_14004B996                                                  ; +0x56, 0x14004b876\nmov     [rsp+48h+var_20], rbp                                          ; +0x5c, 0x14004b87c\nlea     r8, [rsi+68h]                                                  ; +0x61, 0x14004b881\nlea     rdx, [rsp+48h+arg_18]                                          ; +0x65, 0x14004b885\nmov     [rsp+48h+var_28], rdi                                          ; +0x6a, 0x14004b88a\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x6f, 0x14004b88f\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x74, 0x14004b894\ncmp     byte ptr [rsi+0ACh], 0                                         ; +0x7a, 0x14004b89a\njz      short loc_14004B8AD                                            ; +0x81, 0x14004b8a1\nmov     [rsp+48h+arg_1C], 0                                            ; +0x83, 0x14004b8a3\njmp     short loc_14004B8BE                                            ; +0x8b, 0x14004b8ab\ncmp     byte ptr [rsi+0ABh], 0                                         ; +0x8d, 0x14004b8ad\njz      short loc_14004B8BE                                            ; +0x94, 0x14004b8b4\nmov     [rsp+48h+arg_18], 0                                            ; +0x96, 0x14004b8b6\nmov     rcx, [rsi+0A0h]                                                ; +0x9e, 0x14004b8be\nmov     rax, [rcx]                                                     ; +0xa5, 0x14004b8c5\ncall    qword ptr [rax+0C8h]                                           ; +0xa8, 0x14004b8c8\nmov     rcx, rax                                                       ; +0xae, 0x14004b8ce\nlea     r8, [rsp+48h+arg_18]                                           ; +0xb1, 0x14004b8d1\nlea     rdx, [rsp+48h+arg_0]                                           ; +0xb6, 0x14004b8d6\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xbb, 0x14004b8db\nmov     rax, [r14]                                                     ; +0xc1, 0x14004b8e1\nmov     rcx, r14                                                       ; +0xc4, 0x14004b8e4\nmov     rdi, [r14+1E0h]                                                ; +0xc7, 0x14004b8e7\ncall    qword ptr [rax+140h]                                           ; +0xce, 0x14004b8ee\nmov     rdx, [rdi]                                                     ; +0xd4, 0x14004b8f4\nmov     rcx, rdi                                                       ; +0xd7, 0x14004b8f7\nmov     rbx, rax                                                       ; +0xda, 0x14004b8fa\ncall    qword ptr [rdx+140h]                                           ; +0xdd, 0x14004b8fd\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0xe3, 0x14004b903\nmovss   xmm2, [rsp+48h+arg_4]                                          ; +0xe8, 0x14004b908\nmovss   xmm0, dword ptr [rsi+0BCh]                                     ; +0xee, 0x14004b90e\nsubss   xmm1, dword ptr [rax+4]                                        ; +0xf6, 0x14004b916\naddss   xmm0, dword ptr [rsi+0B4h]                                     ; +0xfb, 0x14004b91b\nmov     rdi, [rsp+48h+var_28]                                          ; +0x103, 0x14004b923\nsubss   xmm1, dword ptr [r14+1F0h]                                     ; +0x108, 0x14004b928\nsubss   xmm1, dword ptr [rsi+0B8h]                                     ; +0x111, 0x14004b931\ncomiss  xmm1, xmm2                                                     ; +0x119, 0x14004b939\njbe     short loc_14004B946                                            ; +0x11c, 0x14004b93c\nmovss   [rsp+48h+arg_4], xmm1                                          ; +0x11e, 0x14004b93e\njmp     short loc_14004B951                                            ; +0x124, 0x14004b944\ncomiss  xmm2, xmm0                                                     ; +0x126, 0x14004b946\njbe     short loc_14004B951                                            ; +0x129, 0x14004b949\nmovss   [rsp+48h+arg_4], xmm0                                          ; +0x12b, 0x14004b94b\nmov     rcx, [rsi+0A0h]                                                ; +0x131, 0x14004b951\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x138, 0x14004b958\nmov     rax, [rcx]                                                     ; +0x13d, 0x14004b95d\ncall    qword ptr [rax+0B8h]                                           ; +0x140, 0x14004b960\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x146, 0x14004b966\nmov     byte ptr [rsi+81h], 1                                          ; +0x14b, 0x14004b96b\nlea     rcx, [rsi+68h]                                                 ; +0x152, 0x14004b972\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x156, 0x14004b976\nmov     rcx, [rsi+98h]                                                 ; +0x15c, 0x14004b97c\nmov     rbp, [rsp+48h+var_20]                                          ; +0x163, 0x14004b983\ntest    rcx, rcx                                                       ; +0x168, 0x14004b988\njz      short loc_14004B996                                            ; +0x16b, 0x14004b98b\nmov     rax, [rcx]                                                     ; +0x16d, 0x14004b98d\nmov     rdx, r14                                                       ; +0x170, 0x14004b990\ncall    qword ptr [rax+10h]                                            ; +0x173, 0x14004b993\nadd     rsp, 30h                                                       ; +0x176, 0x14004b996\npop     r14                                                            ; +0x17a, 0x14004b99a\npop     rsi                                                            ; +0x17c, 0x14004b99c\npop     rbx                                                            ; +0x17d, 0x14004b99d\nretn                                                                   ; +0x17e, 0x14004b99e", "xrefs": ["<???> @ 0x14070b138", "<???> @ 0x140885ee8", "<???> @ 0x140885f1c", "<???> @ 0x14090fe54"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}