// // BoomScrollLayer::moveToPage from 0x3c1c1c to 0x3c1d3e (290 bytes) // // 9 xrefs: // > BoomScrollLayer::ccTouchEnded @ 0x3c1e90 // > BoomScrollLayer::addPage @ 0x3c1fca // > BoomScrollLayer::removePage @ 0x3c203e // > ListButtonBar::goToPage @ 0x3e6a82 // > LevelSelectLayer::onNext @ 0x511734 // > LevelSelectLayer::onPrev @ 0x511752 // > GauntletSelectLayer::goToPage @ 0x60a25e // > WorldSelectLayer::goToPage @ 0x62cc60 // > SecretRewardsLayer::goToPage @ 0x6ca5ee // // 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 // cocos2d::CCArray **__fastcall BoomScrollLayer::moveToPage(cocos2d::CCArray **this, cocos2d::CCArray *a2) { cocos2d::CCArray **v2; // r4 const cocos2d::CCPoint *v4; // r2 float v5; // s15 float v6; // s14 bool v7; // fzf bool v8; // fnf float v9; // s15 float v10; // s15 float v11; // s14 cocos2d::CCEaseElasticOut *v12; // r0 float v13; // r2 cocos2d::CCSequence *v14; // r0 cocos2d::CCSequence *v15; // r9 cocos2d::CCFiniteTimeAction *v16; // r0 cocos2d::CCAction *v17; // r5 _DWORD v18[2]; // [sp+4h] [bp-10h] BYREF v2 = this; if ( *((_BYTE *)this + 336) || (int)a2 >= 0 && (this = (cocos2d::CCArray **)BoomScrollLayer::getTotalPages(this), (int)a2 < (int)this) ) { *((_BYTE *)v2 + 424) = 1; BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v18, (float *)v2, (int)a2); cocos2d::CCPoint::operator=(v2 + 94, v18); cocos2d::CCNode::stopActionByTag(v2[96], 2); v5 = *((float *)v2 + 83); if ( v5 > *((float *)v2 + 102) ) { v9 = 0.4; } else { v6 = *((float *)v2 + 103); v7 = v5 == v6; v8 = v5 < v6; v9 = 0.6; if ( v8 || v7 ) v9 = 0.8; } v2[83] = nullptr; v10 = v9 * 1.2; v11 = *((float *)v2 + 104); if ( v11 > 0.0 ) v10 = v10 * v11; v12 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create( (cocos2d::CCMoveTo *)LODWORD(v10), COERCE_FLOAT(v2 + 94), v4); v14 = (cocos2d::CCSequence *)cocos2d::CCEaseElasticOut::create(v12, (cocos2d::CCActionInterval *)0x3F000000, v13); v18[1] = 0; v18[0] = BoomScrollLayer::moveToPageEnded; v15 = v14; v16 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, BoomScrollLayer::moveToPageEnded, 0); v17 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v16, 0); cocos2d::CCNode::runAction(v2[96], v17); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v17 + 36))(v17, 2); this = (cocos2d::CCArray **)v2[105]; v2[115] = a2; if ( this ) this = (cocos2d::CCArray **)(*((int (__fastcall **)(cocos2d::CCArray **, cocos2d::CCArray **, cocos2d::CCArray *))*this + 3))( this, v2, a2); if ( *((_BYTE *)v2 + 336) ) return (cocos2d::CCArray **)BoomScrollLayer::repositionPagesLooped((BoomScrollLayer *)v2); } return this; }