{"type": "func", "start": 4299275792, "end": 4299276141, "name": "CCScrollLayerExt::ccTouchMoved", "pseudocode": "// \n// CCScrollLayerExt::ccTouchMoved from 0x10041be10 to 0x10041bf6d (349 bytes)\n// \n// 3 xrefs:\n// > sub_10041BF70 @ 0x10041bf7c\n// > TableView::ccTouchMoved @ 0x1006fff9a\n// > <???> @ 0x100b3fc80\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 12:30:13 +0000\n// \n\n_QWORD *__fastcall CCScrollLayerExt::ccTouchMoved(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rax\n  _QWORD *result; // rax\n  unsigned __int64 *v5; // rsi\n  __int64 v6; // rax\n  float v7; // xmm1_4\n  __int64 v8; // rdi\n  unsigned __int64 v9; // [rsp+4h] [rbp-3Ch] BYREF\n  double v10; // [rsp+Ch] [rbp-34h] BYREF\n  float v11; // [rsp+14h] [rbp-2Ch]\n  unsigned __int64 v12[5]; // [rsp+18h] [rbp-28h] BYREF\n\n  *(_BYTE *)(a1 + 456) = 1;\n  cocos2d::CCTouch::getLocationInView((__int64)&v9, a2);\n  v3 = cocos2d::CCDirector::sharedDirector(&v9, a2);\n  cocos2d::CCDirector::convertToGL(v12, v3, &v9);\n  result = sub_100278300(&v9, v12);\n  if ( *(_QWORD *)(a1 + 416) == a2 )\n  {\n    sub_100278370((double *)v12, &v9, (unsigned __int64 *)(a1 + 424));\n    if ( *(_BYTE *)(a1 + 500) == 1 )\n    {\n      HIDWORD(v12[0]) = 0;\n    }\n    else if ( *(_BYTE *)(a1 + 499) == 1 )\n    {\n      LODWORD(v12[0]) = 0;\n    }\n    v5 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 192LL))(*(_QWORD *)(a1 + 488));\n    sub_100278350(&v10, v5, v12);\n    v11 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) + 4);\n    v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 328LL))(*(_QWORD *)(a1 + 488));\n    v7 = (float)((float)(v11 - *(float *)(v6 + 4)) - *(float *)(a1 + 504)) - *(float *)(a1 + 512);\n    if ( v7 > *((float *)&v10 + 1) || (v7 = *(float *)(a1 + 508) + *(float *)(a1 + 516), *((float *)&v10 + 1) > v7) )\n      *((float *)&v10 + 1) = v7;\n    (*(void (__fastcall **)(_QWORD, double *))(**(_QWORD **)(a1 + 488) + 184LL))(*(_QWORD *)(a1 + 488), &v10);\n    *(_BYTE *)(a1 + 457) = 1;\n    result = sub_100278300((_QWORD *)(a1 + 424), &v9);\n    v8 = *(_QWORD *)(a1 + 480);\n    if ( v8 )\n      return (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 16LL))(v8, a1);\n  }\n  return result;\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchMoved from 0x10041be10 to 0x10041bf6d (349 bytes)\n; \n; 3 xrefs:\n; > sub_10041BF70 @ 0x10041bf7c\n; > TableView::ccTouchMoved @ 0x1006fff9a\n; > <???> @ 0x100b3fc80\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 12:30:13 +0000\n; \npush    rbp                                                            ; +0x0, 0x10041be10\nmov     rbp, rsp                                                       ; +0x1, 0x10041be11\npush    r15                                                            ; +0x4, 0x10041be14\npush    r14                                                            ; +0x6, 0x10041be16\npush    r12                                                            ; +0x8, 0x10041be18\npush    rbx                                                            ; +0xa, 0x10041be1a\nsub     rsp, 20h                                                       ; +0xb, 0x10041be1b\nmov     r14, rsi                                                       ; +0xf, 0x10041be1f\nmov     rbx, rdi                                                       ; +0x12, 0x10041be22\nmov     byte ptr [rdi+1C8h], 1                                         ; +0x15, 0x10041be25\nlea     r15, [rbp+var_3C]                                              ; +0x1c, 0x10041be2c\nmov     rdi, r15                                                       ; +0x20, 0x10041be30\ncall    cocos2d__CCTouch__getLocationInView                            ; +0x23, 0x10041be33\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x28, 0x10041be38\nlea     r12, [rbp+var_28]                                              ; +0x2d, 0x10041be3d\nmov     rdi, r12                                                       ; +0x31, 0x10041be41\nmov     rsi, rax                                                       ; +0x34, 0x10041be44\nmov     rdx, r15                                                       ; +0x37, 0x10041be47\ncall    cocos2d__CCDirector__convertToGL                               ; +0x3a, 0x10041be4a\nmov     rdi, r15                                                       ; +0x3f, 0x10041be4f\nmov     rsi, r12                                                       ; +0x42, 0x10041be52\ncall    sub_100278300                                                  ; +0x45, 0x10041be55\ncmp     [rbx+1A0h], r14                                                ; +0x4a, 0x10041be5a\njnz     loc_10041BF60                                                  ; +0x51, 0x10041be61\nlea     r14, [rbx+1A8h]                                                ; +0x57, 0x10041be67\nlea     rdi, [rbp+var_28]                                              ; +0x5e, 0x10041be6e\nlea     rsi, [rbp+var_3C]                                              ; +0x62, 0x10041be72\nmov     rdx, r14                                                       ; +0x66, 0x10041be76\ncall    sub_100278370                                                  ; +0x69, 0x10041be79\ncmp     byte ptr [rbx+1F4h], 1                                         ; +0x6e, 0x10041be7e\njnz     short loc_10041BE90                                            ; +0x75, 0x10041be85\nmov     [rbp+var_24], 0                                                ; +0x77, 0x10041be87\njmp     short loc_10041BEA0                                            ; +0x7e, 0x10041be8e\ncmp     byte ptr [rbx+1F3h], 1                                         ; +0x80, 0x10041be90\njnz     short loc_10041BEA0                                            ; +0x87, 0x10041be97\nmov     [rbp+var_28], 0                                                ; +0x89, 0x10041be99\nmov     rdi, [rbx+1E8h]                                                ; +0x90, 0x10041bea0\nmov     rax, [rdi]                                                     ; +0x97, 0x10041bea7\ncall    qword ptr [rax+0C0h]                                           ; +0x9a, 0x10041beaa\nlea     rdi, [rbp+var_34]                                              ; +0xa0, 0x10041beb0\nlea     rdx, [rbp+var_28]                                              ; +0xa4, 0x10041beb4\nmov     rsi, rax                                                       ; +0xa8, 0x10041beb8\ncall    sub_100278350                                                  ; +0xab, 0x10041bebb\nmov     rax, [rbx]                                                     ; +0xb0, 0x10041bec0\nmov     rdi, rbx                                                       ; +0xb3, 0x10041bec3\ncall    qword ptr [rax+148h]                                           ; +0xb6, 0x10041bec6\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xbc, 0x10041becc\nmovss   [rbp+var_2C], xmm0                                             ; +0xc1, 0x10041bed1\nmov     rdi, [rbx+1E8h]                                                ; +0xc6, 0x10041bed6\nmov     rax, [rdi]                                                     ; +0xcd, 0x10041bedd\ncall    qword ptr [rax+148h]                                           ; +0xd0, 0x10041bee0\nmovss   xmm1, [rbp+var_2C]                                             ; +0xd6, 0x10041bee6\nsubss   xmm1, dword ptr [rax+4]                                        ; +0xdb, 0x10041beeb\nsubss   xmm1, dword ptr [rbx+1F8h]                                     ; +0xe0, 0x10041bef0\nsubss   xmm1, dword ptr [rbx+200h]                                     ; +0xe8, 0x10041bef8\nmovss   xmm0, [rbp+var_30]                                             ; +0xf0, 0x10041bf00\nucomiss xmm1, xmm0                                                     ; +0xf5, 0x10041bf05\nja      short loc_10041BF1F                                            ; +0xf8, 0x10041bf08\nmovss   xmm1, dword ptr [rbx+1FCh]                                     ; +0xfa, 0x10041bf0a\naddss   xmm1, dword ptr [rbx+204h]                                     ; +0x102, 0x10041bf12\nucomiss xmm0, xmm1                                                     ; +0x10a, 0x10041bf1a\njbe     short loc_10041BF24                                            ; +0x10d, 0x10041bf1d\nmovss   [rbp+var_30], xmm1                                             ; +0x10f, 0x10041bf1f\nmov     rdi, [rbx+1E8h]                                                ; +0x114, 0x10041bf24\nmov     rax, [rdi]                                                     ; +0x11b, 0x10041bf2b\nlea     rsi, [rbp+var_34]                                              ; +0x11e, 0x10041bf2e\ncall    qword ptr [rax+0B8h]                                           ; +0x122, 0x10041bf32\nmov     byte ptr [rbx+1C9h], 1                                         ; +0x128, 0x10041bf38\nlea     rsi, [rbp+var_3C]                                              ; +0x12f, 0x10041bf3f\nmov     rdi, r14                                                       ; +0x133, 0x10041bf43\ncall    sub_100278300                                                  ; +0x136, 0x10041bf46\nmov     rdi, [rbx+1E0h]                                                ; +0x13b, 0x10041bf4b\ntest    rdi, rdi                                                       ; +0x142, 0x10041bf52\njz      short loc_10041BF60                                            ; +0x145, 0x10041bf55\nmov     rax, [rdi]                                                     ; +0x147, 0x10041bf57\nmov     rsi, rbx                                                       ; +0x14a, 0x10041bf5a\ncall    qword ptr [rax+10h]                                            ; +0x14d, 0x10041bf5d\nadd     rsp, 20h                                                       ; +0x150, 0x10041bf60\npop     rbx                                                            ; +0x154, 0x10041bf64\npop     r12                                                            ; +0x155, 0x10041bf65\npop     r14                                                            ; +0x157, 0x10041bf67\npop     r15                                                            ; +0x159, 0x10041bf69\npop     rbp                                                            ; +0x15b, 0x10041bf6b\nretn                                                                   ; +0x15c, 0x10041bf6c", "xrefs": ["sub_10041BF70 @ 0x10041bf7c", "TableView::ccTouchMoved @ 0x1006fff9a", "<???> @ 0x100b3fc80"], "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"}