// // cocos2d::extension::CCScrollView::deaccelerateScrolling from 0xd17614 to 0xd1792c (792 bytes) // // 5 xrefs: // > @ 0x58ea0 // > cocos2d::extension::CCScrollView::ccTouchEnded @ 0xd16ab8 // > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0xd17828 // > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0xd17890 // > @ 0x15420c0 // // This function is hookable on this platform (idp: arm, 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 13:07:06 +0000 // __int64 __fastcall cocos2d::extension::CCScrollView::deaccelerateScrolling( cocos2d::extension::CCScrollView *this, float a2) { __int64 v3; // x23 void (__fastcall *v4)(__int64, __int64 *); // x26 __int64 v5; // x0 __n128 v6; // q0 float *v7; // x0 __int64 v8; // x0 float v9; // s9 float v10; // s8 __int64 v11; // x0 long double v12; // q0 float v14; // [xsp+60h] [xbp+60h] float v15; // [xsp+78h] [xbp+78h] BYREF float v16; // [xsp+7Ch] [xbp+7Ch] float v17; // [xsp+80h] [xbp+80h] BYREF float v18; // [xsp+84h] [xbp+84h] __int64 v19; // [xsp+88h] [xbp+88h] BYREF __int64 v20; // [xsp+90h] [xbp+90h] BYREF if ( *((_BYTE *)this + 428) ) { cocos2d::CCNode::unschedule(this, cocos2d::extension::CCScrollView::deaccelerateScrolling, 0); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17); v3 = *((_QWORD *)this + 55); v4 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 184LL); v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); cocos2d::CCPoint::operator+(&v20, v5); v4(v3, &v20); if ( *((_BYTE *)this + 468) ) { cocos2d::CCPoint::operator=(&v15, (char *)this + 452); v6 = cocos2d::CCPoint::operator=(&v17, (char *)this + 460); } else { cocos2d::extension::CCScrollView::maxContainerOffset((cocos2d::CCPoint *)&v20); cocos2d::CCPoint::operator=(&v15, &v20); cocos2d::extension::CCScrollView::minContainerOffset(this, (cocos2d::CCPoint *)&v20); v6 = cocos2d::CCPoint::operator=(&v17, &v20); } v7 = (float *)(*(__int64 (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 55) + 192LL))( *((_QWORD *)this + 55), *(long double *)&v6); if ( *v7 <= v15 ) (*(void (__fastcall **)(_QWORD, float, float))(**((_QWORD **)this + 55) + 192LL))( *((_QWORD *)this + 55), v15, *v7); v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55)); if ( *(float *)(v8 + 4) <= v16 ) (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55)); v9 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55)); v10 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55)) + 4); v14 = v9 - *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55)); v11 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, v14, v10 - *(float *)(v11 + 4)); cocos2d::CCPoint::operator-(&v19, (char *)this + 472, &v20, v12); cocos2d::CCPoint::operator=((char *)this + 472, &v19); cocos2d::CCPoint::operator*((char *)this + 472, 0.95); cocos2d::CCPoint::operator=((char *)this + 472, &v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, v9, v10); cocos2d::extension::CCScrollView::setContentOffset((__int64)this, (float *)&v20, 0); if ( fabsf(*((float *)this + 118)) <= 1.0 && fabsf(*((float *)this + 119)) <= 1.0 || v10 > v16 || v10 < v18 || v9 > v15 || v9 < v17 || v10 == v18 || v10 == v16 || v9 == v15 || v9 == v17 ) { cocos2d::CCNode::unschedule(this, cocos2d::extension::CCScrollView::deaccelerateScrolling, 0); cocos2d::extension::CCScrollView::relocateContainer(this, 1); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source