// // CCScrollLayerExt::ccTouchEnded from 0x695598 to 0x6957d8 (576 bytes) // // 4 xrefs: // > `non-virtual thunk to'CCScrollLayerExt::ccTouchEnded @ 0x6957e4 // > TableView::ccTouchEnded @ 0x6984a8 // > @ 0xce338 // > @ 0x1418690 // // 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::ccTouchEnded(__int64 a1, cocos2d::CCTouch *this) { cocos2d::CCDirector *LocationInView; // x0 cocos2d::CCDirector *v5; // x0 const cocos2d::CCPoint *v7; // x2 float v8; // s0 float v9; // s8 float v10; // s0 long double v11; // q0 float MinY; // s0 float v13; // s10 float v14; // s9 float v15; // s8 const cocos2d::CCPoint *v16; // x0 float v17; // s10 void (__fastcall ***v18)(_QWORD, __int64); // x0 const cocos2d::CCPoint *v19; // x1 cocos2d::CCEaseOut *v20; // x0 cocos2d::CCActionInterval *v21; // x1 cocos2d::CCSequence *v22; // x22 cocos2d::CCFiniteTimeAction *v23; // x0 cocos2d::CCNode *v24; // x21 cocos2d::CCAction *v25; // x0 float v26; // s9 __int64 v27; // [xsp+50h] [xbp+50h] BYREF __int64 v28; // [xsp+58h] [xbp+58h] BYREF _BYTE v29[4]; // [xsp+60h] [xbp+60h] BYREF float v30; // [xsp+64h] [xbp+64h] __int64 v31[2]; // [xsp+68h] [xbp+68h] BYREF LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v27, this); v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView); cocos2d::CCDirector::convertToGL(v31, v5, (const cocos2d::CCPoint *)&v27); cocos2d::CCPoint::operator=(&v27, v31); if ( *(cocos2d::CCTouch **)(a1 + 416) == this ) { cocos2d::CCTime::gettimeofdayCocos2d(v31, 0); cocos2d::ccpDistance((cocos2d *)&v27, (const cocos2d::CCPoint *)(a1 + 432), v7); v9 = v8; v10 = cocos2d::CCTime::timersubCocos2d(a1 + 440, v31); if ( (float)(v9 / v10) < 0.5 ) { CCScrollLayerExt::constraintContent((CCScrollLayerExt *)a1); } else { cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(a1 + 488)); cocos2d::CCPoint::operator-(&v28, &v27, a1 + 432, v11); if ( *(_BYTE *)(a1 + 500) ) { HIDWORD(v28) = 0; } else if ( *(_BYTE *)(a1 + 499) ) { LODWORD(v28) = 0; } MinY = CCScrollLayerExt::getMinY((CCScrollLayerExt *)a1); v13 = *(float *)(a1 + 512); v14 = MinY; v15 = CCScrollLayerExt::getMaxY((CCScrollLayerExt *)a1) + *(float *)(a1 + 516); v16 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 192LL))(*(_QWORD *)(a1 + 488)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v16); if ( v15 >= (float)(v30 + *((float *)&v28 + 1)) ) { v26 = v14 - v13; if ( v26 <= (float)(v30 + *((float *)&v28 + 1)) ) { v17 = 0.3; } else { v17 = 0.1; *((float *)&v28 + 1) = v26 - v30; } } else { v17 = 0.1; *((float *)&v28 + 1) = v15 - v30; } v18 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 480); if ( v18 ) (**v18)(v18, a1); CCScrollLayerExt::constraintContent((CCScrollLayerExt *)a1); v20 = (cocos2d::CCEaseOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)&v28, v17, v19); v22 = (cocos2d::CCSequence *)cocos2d::CCEaseOut::create(v20, v21, 2.0); v23 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::constraintContent, 0); v24 = *(cocos2d::CCNode **)(a1 + 488); v25 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v22, v23, 0); cocos2d::CCNode::runAction(v24, v25); *(_BYTE *)(a1 + 457) = 1; } } *(_BYTE *)(a1 + 456) = 0; cocos2d::CCPoint::operator=(a1 + 424, &unk_155A948); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source