// // CCScrollLayerExt::updateScrollDecay from 0x695164 to 0x6952c0 (348 bytes) // // 4 xrefs: // > @ 0xa42c0 // > CCScrollLayerExt::updateScrollDecay @ 0x69525c // > CCScrollLayerExt::scrollLayer @ 0x695914 // > @ 0x1544920 // // 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 12:50:37 +0000 // __int64 __fastcall CCScrollLayerExt::updateScrollDecay(CCScrollLayerExt *this, float a2) { float v3; // s2 float v4; // s1 float v5; // s2 __int64 v6; // x23 float MinY; // s8 float MaxY; // s0 float v10; // [xsp+40h] [xbp+40h] __int64 v11; // [xsp+58h] [xbp+58h] BYREF _BYTE v12[8]; // [xsp+60h] [xbp+60h] BYREF v3 = *((float *)this + 130); v4 = (float)(v3 * a2) * 15.0; v5 = v3 - v4; if ( fabsf(v5) < 0.1 ) { v4 = v4 + v5; *((_DWORD *)this + 130) = 0; } else { *((float *)this + 130) = v5; } v10 = v4; v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 192LL))(*((_QWORD *)this + 61)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, v10); cocos2d::CCPoint::operator+(&v11, v6, v12); MinY = CCScrollLayerExt::getMinY(this); MaxY = CCScrollLayerExt::getMaxY(this); if ( MinY <= *((float *)&v11 + 1) ) { if ( MaxY < *((float *)&v11 + 1) ) { *((float *)&v11 + 1) = MaxY; *((_DWORD *)this + 130) = 0; } } else { *((float *)&v11 + 1) = MinY; *((_DWORD *)this + 130) = 0; } (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 61) + 184LL))(*((_QWORD *)this + 61), &v11); if ( *((float *)this + 130) == 0.0 ) { cocos2d::CCNode::unschedule(this, CCScrollLayerExt::updateScrollDecay, 0); *((_BYTE *)this + 524) = 0; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source