{"type": "func", "start": 5369002432, "end": 5369002806, "name": "CCScrollLayerExt::ccTouchMoved", "pseudocode": "// \n// CCScrollLayerExt::ccTouchMoved from 0x1400479c0 to 0x140047b36 (374 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1405304b0\n// > <???> @ 0x140662e58\n// > <???> @ 0x140662e6c\n// > <???> @ 0x140662e7c\n// > <???> @ 0x1406c4968\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCScrollLayerExt::ccTouchMoved(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v5; // rax\n  struct cocos2d::CCPoint v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  __int64 v10; // rcx\n  struct cocos2d::CCPoint v11; // [rsp+40h] [rbp+8h] BYREF\n  char v12; // [rsp+48h] [rbp+10h] BYREF\n  int v13; // [rsp+58h] [rbp+20h] BYREF\n  int v14; // [rsp+5Ch] [rbp+24h]\n\n  LOBYTE(a1->m_sAdditionalTransform.b) = 1;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();\n  v6 = cocos2d::CCDirector::convertToGL(v5, &v11);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v12, v6);\n  if ( a2 == *(cocos2d::CCTouch **)&a1->m_fSkewY )\n  {\n    cocos2d::CCPoint::operator-(&v12, &v13, &a1->m_obAnchorPointInPoints.y);\n    if ( LOBYTE(a1->m_sInverse.a) )\n    {\n      v14 = 0;\n    }\n    else if ( HIBYTE(a1->m_sTransform.ty) )\n    {\n      v13 = 0;\n    }\n    v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sTransform.d + 200LL))(*(_QWORD *)&a1->m_sTransform.d);\n    cocos2d::CCPoint::operator+(v7, &v11);\n    v8 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)&a1[-1].m_sInverse.ty + 304LL))(&a1[-1].m_sInverse.ty);\n    v9 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sTransform.d + 304LL))(*(_QWORD *)&a1->m_sTransform.d);\n    if ( (float)((float)((float)(*(float *)(v8 + 4) - *(float *)(v9 + 4)) - a1->m_sInverse.b) - a1->m_sInverse.d) <= v11.y )\n    {\n      if ( v11.y > (float)(a1->m_sInverse.tx + a1->m_sInverse.c) )\n        v11.y = a1->m_sInverse.tx + a1->m_sInverse.c;\n    }\n    else\n    {\n      v11.y = (float)((float)(*(float *)(v8 + 4) - *(float *)(v9 + 4)) - a1->m_sInverse.b) - a1->m_sInverse.d;\n    }\n    (*(void (__fastcall **)(_QWORD, struct cocos2d::CCPoint *))(**(_QWORD **)&a1->m_sTransform.d + 184LL))(\n      *(_QWORD *)&a1->m_sTransform.d,\n      &v11);\n    BYTE1(a1->m_sAdditionalTransform.b) = 1;\n    cocos2d::CCPoint::operator=(&a1->m_obAnchorPointInPoints.y, &v12);\n    v10 = *(_QWORD *)&a1->m_sTransform.b;\n    if ( v10 )\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 16LL))(v10, &a1[-1].m_sInverse.ty);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchMoved from 0x1400479c0 to 0x140047b36 (374 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1405304b0\n; > <???> @ 0x140662e58\n; > <???> @ 0x140662e6c\n; > <???> @ 0x140662e7c\n; > <???> @ 0x1406c4968\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1400479c0\npush    rdi                                                            ; +0x2, 0x1400479c2\nsub     rsp, 28h                                                       ; +0x3, 0x1400479c3\nmov     rbx, rdx                                                       ; +0x7, 0x1400479c7\nmov     byte ptr [rcx+78h], 1                                          ; +0xa, 0x1400479ca\nmov     rdi, rcx                                                       ; +0xe, 0x1400479ce\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x11, 0x1400479d1\nmov     rcx, rbx                                                       ; +0x16, 0x1400479d6\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x19, 0x1400479d9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1f, 0x1400479df\nmov     rcx, rax                                                       ; +0x25, 0x1400479e5\nlea     r8, [rsp+38h+arg_8]                                            ; +0x28, 0x1400479e8\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x2d, 0x1400479ed\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x32, 0x1400479f2\nmov     rdx, rax                                                       ; +0x38, 0x1400479f8\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x3b, 0x1400479fb\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x40, 0x140047a00\ncmp     rbx, [rdi+58h]                                                 ; +0x46, 0x140047a06\njnz     loc_140047B2F                                                  ; +0x4a, 0x140047a0a\nmov     [rsp+38h+arg_10], rsi                                          ; +0x50, 0x140047a10\nlea     r8, [rdi+60h]                                                  ; +0x55, 0x140047a15\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x59, 0x140047a19\nmov     [rsp+38h+var_18], r14                                          ; +0x5e, 0x140047a1e\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x63, 0x140047a23\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x68, 0x140047a28\ncmp     byte ptr [rdi+0A4h], 0                                         ; +0x6e, 0x140047a2e\njz      short loc_140047A41                                            ; +0x75, 0x140047a35\nmov     [rsp+38h+arg_1C], 0                                            ; +0x77, 0x140047a37\njmp     short loc_140047A52                                            ; +0x7f, 0x140047a3f\ncmp     byte ptr [rdi+0A3h], 0                                         ; +0x81, 0x140047a41\njz      short loc_140047A52                                            ; +0x88, 0x140047a48\nmov     [rsp+38h+arg_18], 0                                            ; +0x8a, 0x140047a4a\nmov     rcx, [rdi+98h]                                                 ; +0x92, 0x140047a52\nmov     rax, [rcx]                                                     ; +0x99, 0x140047a59\ncall    qword ptr [rax+0C8h]                                           ; +0x9c, 0x140047a5c\nmov     rcx, rax                                                       ; +0xa2, 0x140047a62\nlea     r8, [rsp+38h+arg_18]                                           ; +0xa5, 0x140047a65\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xaa, 0x140047a6a\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xaf, 0x140047a6f\nmov     rax, [rdi-140h]                                                ; +0xb5, 0x140047a75\nlea     rcx, [rdi-140h]                                                ; +0xbc, 0x140047a7c\ncall    qword ptr [rax+130h]                                           ; +0xc3, 0x140047a83\nmov     rcx, [rdi+98h]                                                 ; +0xc9, 0x140047a89\nmov     rbx, rax                                                       ; +0xd0, 0x140047a90\nmov     rdx, [rcx]                                                     ; +0xd3, 0x140047a93\ncall    qword ptr [rdx+130h]                                           ; +0xd6, 0x140047a96\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0xdc, 0x140047a9c\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0xe1, 0x140047aa1\nmovss   xmm0, dword ptr [rdi+0B4h]                                     ; +0xe7, 0x140047aa7\nsubss   xmm1, dword ptr [rax+4]                                        ; +0xef, 0x140047aaf\naddss   xmm0, dword ptr [rdi+0ACh]                                     ; +0xf4, 0x140047ab4\nsubss   xmm1, dword ptr [rdi+0A8h]                                     ; +0xfc, 0x140047abc\nsubss   xmm1, dword ptr [rdi+0B0h]                                     ; +0x104, 0x140047ac4\ncomiss  xmm1, xmm2                                                     ; +0x10c, 0x140047acc\njbe     short loc_140047AD9                                            ; +0x10f, 0x140047acf\nmovss   [rsp+38h+arg_4], xmm1                                          ; +0x111, 0x140047ad1\njmp     short loc_140047AE4                                            ; +0x117, 0x140047ad7\ncomiss  xmm2, xmm0                                                     ; +0x119, 0x140047ad9\njbe     short loc_140047AE4                                            ; +0x11c, 0x140047adc\nmovss   [rsp+38h+arg_4], xmm0                                          ; +0x11e, 0x140047ade\nmov     rcx, [rdi+98h]                                                 ; +0x124, 0x140047ae4\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x12b, 0x140047aeb\nmov     rax, [rcx]                                                     ; +0x130, 0x140047af0\ncall    qword ptr [rax+0B8h]                                           ; +0x133, 0x140047af3\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x139, 0x140047af9\nmov     byte ptr [rdi+79h], 1                                          ; +0x13e, 0x140047afe\nlea     rcx, [rdi+60h]                                                 ; +0x142, 0x140047b02\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x146, 0x140047b06\nmov     rcx, [rdi+90h]                                                 ; +0x14c, 0x140047b0c\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x153, 0x140047b13\ntest    rcx, rcx                                                       ; +0x158, 0x140047b18\njz      short loc_140047B2A                                            ; +0x15b, 0x140047b1b\nmov     rax, [rcx]                                                     ; +0x15d, 0x140047b1d\nlea     rdx, [rdi-140h]                                                ; +0x160, 0x140047b20\ncall    qword ptr [rax+10h]                                            ; +0x167, 0x140047b27\nmov     r14, [rsp+38h+var_18]                                          ; +0x16a, 0x140047b2a\nadd     rsp, 28h                                                       ; +0x16f, 0x140047b2f\npop     rdi                                                            ; +0x173, 0x140047b33\npop     rbx                                                            ; +0x174, 0x140047b34\nretn                                                                   ; +0x175, 0x140047b35", "xrefs": ["<???> @ 0x1405304b0", "<???> @ 0x140662e58", "<???> @ 0x140662e6c", "<???> @ 0x140662e7c", "<???> @ 0x1406c4968"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}