{"type": "func", "start": 6856996, "end": 6857380, "name": "BoomScrollLayer::moveToPage", "pseudocode": "// \n// BoomScrollLayer::moveToPage from 0x68a124 to 0x68a2a4 (384 bytes)\n// \n// 11 xrefs:\n// > BoomScrollLayer::ccTouchEnded @ 0x68a404\n// > BoomScrollLayer::addPage @ 0x68a61c\n// > BoomScrollLayer::removePage @ 0x68a6c4\n// > BoomScrollLayer::removePage @ 0x68a6e4\n// > ListButtonBar::goToPage @ 0x6c8ca4\n// > LevelSelectLayer::onNext @ 0x8c3b70\n// > LevelSelectLayer::onPrev @ 0x8c3ba4\n// > GauntletSelectLayer::goToPage @ 0xa71f4c\n// > WorldSelectLayer::goToPage @ 0xaa6010\n// > SecretRewardsLayer::goToPage @ 0xb9a230\n// > <???> @ 0xb9ec0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:32 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::moveToPage(BoomScrollLayer *this, int a2)\n{\n  const cocos2d::CCPoint *v5; // x1\n  float v6; // s0\n  float v7; // s0\n  float v8; // s1\n  cocos2d::CCEaseElasticOut *v9; // x0\n  cocos2d::CCActionInterval *v10; // x1\n  cocos2d::CCSequence *v11; // x22\n  cocos2d::CCFiniteTimeAction *v12; // x0\n  cocos2d::CCAction *v13; // x22\n  __int64 v14; // x0\n  _BYTE v15[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( *((_BYTE *)this + 436)\n    || (a2 & 0x80000000) == 0 && a2 < (int)BoomScrollLayer::getTotalPages((cocos2d::CCArray **)this) )\n  {\n    *((_BYTE *)this + 552) = 1;\n    BoomScrollLayer::positionForPageWithNumber(this, a2, (cocos2d::CCPoint *)v15);\n    cocos2d::CCPoint::operator=((char *)this + 496, v15);\n    cocos2d::CCNode::stopActionByTag(*((cocos2d::CCNode **)this + 63), 2);\n    v6 = *((float *)this + 108);\n    if ( v6 <= *((float *)this + 133) )\n    {\n      if ( v6 <= *((float *)this + 134) )\n        v7 = 0.96;\n      else\n        v7 = 0.72;\n    }\n    else\n    {\n      v7 = 0.48;\n    }\n    v8 = *((float *)this + 135);\n    if ( v8 > 0.0 )\n      v7 = v7 * v8;\n    *((_DWORD *)this + 108) = 0;\n    v9 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((BoomScrollLayer *)((char *)this + 496), v7, v5);\n    v11 = (cocos2d::CCSequence *)cocos2d::CCEaseElasticOut::create(v9, v10, 0.5);\n    v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, BoomScrollLayer::moveToPageEnded, 0);\n    v13 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v11, v12, 0);\n    cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 63), v13);\n    (*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v13 + 72LL))(v13, 2);\n    *((_DWORD *)this + 147) = a2;\n    v14 = *((_QWORD *)this + 68);\n    if ( v14 )\n      (*(void (__fastcall **)(__int64, BoomScrollLayer *, _QWORD))(*(_QWORD *)v14 + 24LL))(v14, this, (unsigned int)a2);\n    if ( *((_BYTE *)this + 436) )\n      BoomScrollLayer::repositionPagesLooped(this);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; BoomScrollLayer::moveToPage from 0x68a124 to 0x68a2a4 (384 bytes)\n; \n; 11 xrefs:\n; > BoomScrollLayer::ccTouchEnded @ 0x68a404\n; > BoomScrollLayer::addPage @ 0x68a61c\n; > BoomScrollLayer::removePage @ 0x68a6c4\n; > BoomScrollLayer::removePage @ 0x68a6e4\n; > ListButtonBar::goToPage @ 0x6c8ca4\n; > LevelSelectLayer::onNext @ 0x8c3b70\n; > LevelSelectLayer::onPrev @ 0x8c3ba4\n; > GauntletSelectLayer::goToPage @ 0xa71f4c\n; > WorldSelectLayer::goToPage @ 0xaa6010\n; > SecretRewardsLayer::goToPage @ 0xb9a230\n; > <???> @ 0xb9ec0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:32 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x68a124\nMOV             X29, SP                                                ; +0x4, 0x68a128\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x68a12c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68a130\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x10, 0x68a134\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x68a138\nMOV             W21, W1                                                ; +0x18, 0x68a13c\nMOV             X19, X0                                                ; +0x1c, 0x68a140\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68a144\nLDRB            W1, [X0,#0x1B4]                                        ; +0x24, 0x68a148\nLDR             X2, [X2]                                               ; +0x28, 0x68a14c\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x2c, 0x68a150\nCBNZ            W1, loc_68A190                                         ; +0x30, 0x68a154\nTBNZ            W21, #0x1F, loc_68A168                                 ; +0x34, 0x68a158\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x38, 0x68a15c\nCMP             W21, W0                                                ; +0x3c, 0x68a160\nB.LT            loc_68A190                                             ; +0x40, 0x68a164\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x44, 0x68a168\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x48, 0x68a16c\nLDR             X0, [X20]                                              ; +0x4c, 0x68a170\nCMP             X1, X0                                                 ; +0x50, 0x68a174\nB.NE            loc_68A2A0                                             ; +0x54, 0x68a178\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x58, 0x68a17c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x5c, 0x68a180\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x60, 0x68a184\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x64, 0x68a188\nRET                                                                    ; +0x68, 0x68a18c\nADD             X22, X29, #0x50+var_10                                 ; +0x6c, 0x68a190\nMOV             W0, #1                                                 ; +0x70, 0x68a194\nMOV             X8, X22                                                ; +0x74, 0x68a198\nSTRB            W0, [X19,#0x228]                                       ; +0x78, 0x68a19c\nMOV             W1, W21; int                                           ; +0x7c, 0x68a1a0\nMOV             X0, X19; this                                          ; +0x80, 0x68a1a4\nADD             X23, X19, #0x1F0                                       ; +0x84, 0x68a1a8\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x88, 0x68a1ac\nMOV             X1, X22                                                ; +0x8c, 0x68a1b0\nMOV             X0, X23                                                ; +0x90, 0x68a1b4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x94, 0x68a1b8\nLDR             X0, [X19,#0x1F8]; this                                 ; +0x98, 0x68a1bc\nMOV             W1, #2; int                                            ; +0x9c, 0x68a1c0\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0xa0, 0x68a1c4\nLDR             S0, [X19,#0x1B0]                                       ; +0xa4, 0x68a1c8\nLDR             S1, [X19,#0x214]                                       ; +0xa8, 0x68a1cc\nFCMPE           S0, S1                                                 ; +0xac, 0x68a1d0\nB.LE            loc_68A284                                             ; +0xb0, 0x68a1d4\nLDR             S0, =0x3EF5C290                                        ; +0xb4, 0x68a1d8\nLDR             S1, [X19,#0x21C]                                       ; +0xb8, 0x68a1dc\nFCMPE           S1, #0.0                                               ; +0xbc, 0x68a1e0\nB.LE            loc_68A1EC                                             ; +0xc0, 0x68a1e4\nFMUL            S0, S0, S1; float                                      ; +0xc4, 0x68a1e8\nFMOV            S1, WZR                                                ; +0xc8, 0x68a1ec\nMOV             X0, X23; this                                          ; +0xcc, 0x68a1f0\nSTR             S1, [X19,#0x1B0]                                       ; +0xd0, 0x68a1f4\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0xd4, 0x68a1f8\nFMOV            S0, #0.5; float                                        ; +0xd8, 0x68a1fc\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xdc, 0x68a200\nMOV             X22, X0                                                ; +0xe0, 0x68a204\nADRP            X1, #_ZN15BoomScrollLayer15moveToPageEndedEv_ptr@PAGE  ; +0xe4, 0x68a208\nMOV             X2, #0                                                 ; +0xe8, 0x68a20c\nMOV             X0, X19                                                ; +0xec, 0x68a210\nLDR             X1, [X1,#_ZN15BoomScrollLayer15moveToPageEndedEv_ptr@PAGEOFF]; BoomScrollLayer::moveToPageEnded(void) ... ; +0xf0, 0x68a214\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xf4, 0x68a218\nMOV             X1, X0; cocos2d::CCFiniteTimeAction *                  ; +0xf8, 0x68a21c\nMOV             X2, #0                                                 ; +0xfc, 0x68a220\nMOV             X0, X22; this                                          ; +0x100, 0x68a224\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x104, 0x68a228\nMOV             X22, X0                                                ; +0x108, 0x68a22c\nLDR             X0, [X19,#0x1F8]; this                                 ; +0x10c, 0x68a230\nMOV             X1, X22; cocos2d::CCAction *                           ; +0x110, 0x68a234\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x114, 0x68a238\nLDR             X2, [X22]                                              ; +0x118, 0x68a23c\nMOV             X0, X22                                                ; +0x11c, 0x68a240\nMOV             W1, #2                                                 ; +0x120, 0x68a244\nLDR             X2, [X2,#0x48]                                         ; +0x124, 0x68a248\nBLR             X2                                                     ; +0x128, 0x68a24c\nSTR             W21, [X19,#0x24C]                                      ; +0x12c, 0x68a250\nLDR             X0, [X19,#0x220]                                       ; +0x130, 0x68a254\nCBZ             X0, loc_68A270                                         ; +0x134, 0x68a258\nLDR             X3, [X0]                                               ; +0x138, 0x68a25c\nMOV             X1, X19                                                ; +0x13c, 0x68a260\nMOV             W2, W21                                                ; +0x140, 0x68a264\nLDR             X3, [X3,#0x18]                                         ; +0x144, 0x68a268\nBLR             X3                                                     ; +0x148, 0x68a26c\nLDRB            W0, [X19,#0x1B4]                                       ; +0x14c, 0x68a270\nCBZ             W0, loc_68A168                                         ; +0x150, 0x68a274\nMOV             X0, X19; this                                          ; +0x154, 0x68a278\nBL              _ZN15BoomScrollLayer21repositionPagesLoopedEv; BoomScrollLayer::repositionPagesLooped(void) ; +0x158, 0x68a27c\nB               loc_68A168                                             ; +0x15c, 0x68a280\nLDR             S1, [X19,#0x218]                                       ; +0x160, 0x68a284\nFCMPE           S0, S1                                                 ; +0x164, 0x68a288\nB.LE            loc_68A298                                             ; +0x168, 0x68a28c\nLDR             S0, =0x3F3851EC                                        ; +0x16c, 0x68a290\nB               loc_68A1DC                                             ; +0x170, 0x68a294\nLDR             S0, =0x3F75C290                                        ; +0x174, 0x68a298\nB               loc_68A1DC                                             ; +0x178, 0x68a29c\nBL              .__stack_chk_fail                                      ; +0x17c, 0x68a2a0", "xrefs": ["BoomScrollLayer::ccTouchEnded @ 0x68a404", "BoomScrollLayer::addPage @ 0x68a61c", "BoomScrollLayer::removePage @ 0x68a6c4", "BoomScrollLayer::removePage @ 0x68a6e4", "ListButtonBar::goToPage @ 0x6c8ca4", "LevelSelectLayer::onNext @ 0x8c3b70", "LevelSelectLayer::onPrev @ 0x8c3ba4", "GauntletSelectLayer::goToPage @ 0xa71f4c", "WorldSelectLayer::goToPage @ 0xaa6010", "SecretRewardsLayer::goToPage @ 0xb9a230", "<???> @ 0xb9ec0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}