// // 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 // void __fastcall cocos2d::extension::CCScrollView::ccTouchMoved( cocos2d::extension::CCScrollView *this, struct cocos2d::CCTouch *a2, struct cocos2d::CCEvent *a3) { cocos2d::extension::CCScrollView *v3; // rsi _BYTE *v6; // rbx __int64 ViewRect; // rax struct cocos2d::CCObject *v8; // rax __int64 v9; // rax int v10; // eax _DWORD *v11; // rbx float v12; // xmm7_4 float v13; // xmm1_4 cocos2d::CCEGLViewProtocol *v14; // rax float ScaleY; // xmm0_4 cocos2d::CCEGLViewProtocol *v16; // rax float v17; // xmm6_4 const struct cocos2d::CCPoint *v18; // rax float v19; // xmm2_4 float v20; // xmm1_4 __int64 v21; // rax float *v22; // rax float v23; // xmm7_4 __int64 v24; // rax float v25; // xmm6_4 float *v26; // rax float *v27; // rbx float v28; // xmm1_4 __int64 v29; // rcx struct cocos2d::CCObject *v30; // rax const struct cocos2d::CCPoint *v31; // rbx struct cocos2d::CCObject *v32; // rax cocos2d *v33; // rax const struct cocos2d::CCPoint *v34; // r8 float v35; // xmm6_4 float v36; // xmm0_4 float v37[2]; // [rsp+20h] [rbp-60h] BYREF float v38[2]; // [rsp+28h] [rbp-58h] BYREF _BYTE v39[8]; // [rsp+30h] [rbp-50h] BYREF _BYTE v40[8]; // [rsp+38h] [rbp-48h] BYREF _BYTE v41[16]; // [rsp+40h] [rbp-40h] BYREF _BYTE v42[16]; // [rsp+50h] [rbp-30h] BYREF float v43; // [rsp+A0h] [rbp+20h] BYREF float v44; // [rsp+A4h] [rbp+24h] char v45; // [rsp+B8h] [rbp+38h] BYREF v3 = (cocos2d::extension::CCScrollView *)((char *)this - 320); if ( !(*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 344LL))( (char *)this - 320, a2, a3) || !cocos2d::CCArray::containsObject(*((cocos2d::CCArray **)this + 23), a2) ) { return; } v6 = (char *)this + 116; if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 23)) == 1 && *v6 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v42); ViewRect = cocos2d::extension::CCScrollView::getViewRect(v3, v41); cocos2d::CCRect::operator=(v42, ViewRect); v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 23), 0); v9 = cocos2d::CCNode::convertTouchToNodeSpace(v3, v38, v8); cocos2d::CCPoint::operator=(&v45, v9); cocos2d::CCPoint::operator-(&v45, v38, (char *)this + 168); cocos2d::CCPoint::operator=(&v43, v38); v10 = *((_DWORD *)this + 28); v11 = (_DWORD *)((char *)this + 112); if ( v10 == 1 ) { v12 = v44; } else if ( v10 ) { v13 = (float)(v43 * v43) + (float)(v44 * v44); if ( v13 < 0.0 ) v12 = sqrtf(v13); else v12 = fsqrt(v13); } else { v12 = v43; } if ( !*((_BYTE *)this + 136) ) { v14 = (cocos2d::CCEGLViewProtocol *)cocos2d::CCEGLView::sharedOpenGLView(); ScaleY = cocos2d::CCEGLViewProtocol::getScaleY(v14); v16 = (cocos2d::CCEGLViewProtocol *)cocos2d::CCEGLView::sharedOpenGLView(); v17 = (float)((float)(ScaleY + cocos2d::CCEGLViewProtocol::getScaleX(v16)) * 0.5) * v12; if ( fabs(v17 / (float)(int)cocos2d::CCDevice::getDPI()) < 0.043749999 ) return; v11 = (_DWORD *)((char *)this + 112); if ( !*((_BYTE *)this + 136) ) cocos2d::CCPoint::operator=(&v43, &unk_18004A610); } cocos2d::CCPoint::operator=((char *)this + 168, &v45); *((_BYTE *)this + 136) = 1; v18 = (const struct cocos2d::CCPoint *)cocos2d::CCNode::convertToWorldSpace(v3, v38, &v45); if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v42, v18) ) { if ( *v11 ) { if ( *v11 != 1 ) { LABEL_22: cocos2d::CCPoint::operator=(v39, (char *)this + 140); cocos2d::CCPoint::operator=(v40, (char *)this + 148); v22 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 16) + 200LL))(*((_QWORD *)this + 16)); v23 = v43 + *v22; v24 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 16) + 200LL))(*((_QWORD *)this + 16)); v25 = v44 + *(float *)(v24 + 4); cocos2d::CCPoint::operator=((char *)this + 160, &v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, v23, v25); v27 = v26; if ( !*((_BYTE *)this + 156) ) { cocos2d::extension::CCScrollView::minContainerOffset((__int64)this - 320, (cocos2d::CCPoint *)v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 0.0); v28 = fminf(v37[1], v27[1]); *v27 = fmaxf(v38[0], fminf(v37[0], *v27)); v27[1] = fmaxf(v38[1], v28); } (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 16) + 184LL))(*((_QWORD *)this + 16), v27); v29 = *((_QWORD *)this + 13); if ( v29 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v29 + 8LL))(v29, (char *)this - 320); return; } v19 = v44; v20 = 0.0; } else { v20 = v43; v19 = 0.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v20, v19); cocos2d::CCPoint::operator=(&v43, v21); goto LABEL_22; } } else if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 23)) == 2 && !*v6 ) { v30 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 23), 1u); v31 = (const struct cocos2d::CCPoint *)cocos2d::CCNode::convertTouchToNodeSpace(*((_QWORD *)this + 16), &v43, v30); v32 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 23), 0); v33 = (cocos2d *)cocos2d::CCNode::convertTouchToNodeSpace(*((_QWORD *)this + 16), &v45, v32); v35 = cocos2d::ccpDistance(v33, v31, v34); v36 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 16) + 168LL))(*((_QWORD *)this + 16)); cocos2d::extension::CCScrollView::setZoomScale(v3, (float)(v36 * v35) / *((float *)this + 44)); } }