// // BoomScrollLayer::ccTouchMoved from 0x68a840 to 0x68aa64 (548 bytes) // // 3 xrefs: // > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x68aa68 // > @ 0xe0a10 // > @ 0x1412df8 // // 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:32 +0000 // __int64 __fastcall BoomScrollLayer::ccTouchMoved(__int64 a1, cocos2d::CCTouch *a2, __int64 a3) { cocos2d::CCTouch *v4; // x21 cocos2d::CCDirector *LocationInView; // x0 cocos2d::CCDirector *v7; // x0 int v8; // w1 int v9; // w0 void (__fastcall ***v10)(_QWORD, __int64); // x0 float v11; // s8 float *v12; // x0 float v13; // s8 int v14; // w21 cocos2d::CCPoint *v15; // x0 float v16; // s9 float v17; // s10 cocos2d::CCDirector *v18; // x0 float v19; // s0 __int64 v20; // x20 void (__fastcall *v21)(__int64, __int64 *); // x21 __int64 v23; // [xsp+68h] [xbp+68h] BYREF __int64 v24; // [xsp+70h] [xbp+70h] BYREF v4 = *(cocos2d::CCTouch **)(a1 + 472); if ( v4 == a2 && !*(_BYTE *)(a1 + 628) ) { LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v23, v4); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView); cocos2d::CCDirector::convertToGL(v7, (const cocos2d::CCPoint *)&v23); cocos2d::CCPoint::operator=(&v23, &v24); if ( *(_DWORD *)(a1 + 460) == 1 ) goto LABEL_11; if ( vabds_f32(*(float *)&v23, *(float *)(a1 + 428)) >= *(float *)(a1 + 556) ) { cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 504), 2); *(_BYTE *)(a1 + 552) = 0; v8 = v23; v9 = *(unsigned __int8 *)(a1 + 568); *(_DWORD *)(a1 + 460) = 1; *(_DWORD *)(a1 + 428) = v8; if ( v9 ) BoomScrollLayer::cancelAndStoleTouch((BoomScrollLayer *)a1, v4, a3); v10 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 544); if ( v10 ) (**v10)(v10, a1); if ( *(_DWORD *)(a1 + 460) == 1 ) { LABEL_11: v11 = (float)-*(_DWORD *)(a1 + 588); v12 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); v13 = (float)(*(float *)&v23 + (float)(v11 * (float)(*v12 - *(float *)(a1 + 592)))) - *(float *)(a1 + 428); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, v13, 0.0); v14 = BoomScrollLayer::pageNumberForPosition((cocos2d::CCArray **)a1); v15 = BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)a1, v14, (cocos2d::CCPoint *)&v24); v16 = v13 - *(float *)&v24; if ( !v14 && v16 > 0.0 || (v15 = (cocos2d::CCPoint *)((unsigned int)BoomScrollLayer::getTotalPages((cocos2d::CCArray **)a1) - 1), v14 == (_DWORD)v15) && v16 < 0.0 ) { v17 = v16 * *(float *)(a1 + 564); v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15); cocos2d::CCDirector::getWinSize(&v24, v18); v19 = v16 - (float)(v17 / *(float *)&v24); } else { v19 = 0.0; } v20 = *(_QWORD *)(a1 + 504); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, v13 - v19, 0.0); v21(v20, &v24); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source