// // BoomScrollLayer::ccTouchMoved from 0x3c2100 to 0x3c2290 (400 bytes) // // 1 xrefs: // > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x3c229c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:46:31 +0000 // int __fastcall BoomScrollLayer::ccTouchMoved(int result, cocos2d::CCObject *a2, int a3) { int v4; // r4 cocos2d::CCObject *v5; // r8 cocos2d::CCDirector *LocationInView; // r0 const cocos2d::CCPoint *v7; // r0 float v8; // r3 float v9; // s16 float *v10; // r0 float v11; // s17 int v12; // r7 cocos2d::CCDirector *v13; // r0 float v14; // s16 float v15; // s16 int v16; // r4 int (__fastcall *v17)(int, float *); // r7 float v18; // s18 float v19[2]; // [sp+4h] [bp-14h] BYREF float v20[2]; // [sp+Ch] [bp-Ch] BYREF v4 = result; v5 = *(cocos2d::CCObject **)(result + 360); if ( v5 == a2 && !*(_BYTE *)(result + 492) ) { LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v19); v7 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView); cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v20, v7); result = cocos2d::CCPoint::operator=(v19, v20); if ( *(_DWORD *)(v4 + 352) != 1 && fabsf(v19[0] - *(float *)(v4 + 328)) >= *(float *)(v4 + 428) ) { cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v4 + 384), 2); *(_DWORD *)(v4 + 352) = 1; v8 = v19[0]; *(_BYTE *)(v4 + 424) = 0; *(float *)(v4 + 328) = v8; if ( *(_BYTE *)(v4 + 440) ) BoomScrollLayer::cancelAndStoleTouch((BoomScrollLayer *)v4, v5, a3); result = *(_DWORD *)(v4 + 420); if ( result ) result = (**(int (__fastcall ***)(int, int))result)(result, v4); } if ( *(_DWORD *)(v4 + 352) == 1 ) { v9 = (float)-*(_DWORD *)(v4 + 460); v10 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 164))(v4); v11 = (float)(v19[0] + (float)(v9 * (float)(*v10 - *(float *)(v4 + 464)))) - *(float *)(v4 + 328); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v11, 0.0); v12 = BoomScrollLayer::pageNumberForPosition(v4); v13 = BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v20, (float *)v4, v12); v14 = v11 - v20[0]; if ( !v12 && v14 > 0.0 || (v13 = (cocos2d::CCDirector *)(BoomScrollLayer::getTotalPages((cocos2d::CCArray **)v4) - 1), (cocos2d::CCDirector *)v12 == v13) && v14 < 0.0 ) { v18 = *(float *)(v4 + 436); cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20); v15 = v14 - (float)((float)(v14 * v18) / v20[0]); } else { v15 = 0.0; } v16 = *(_DWORD *)(v4 + 384); v17 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v11 - v15, 0.0); return v17(v16, v20); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source