{"type": "func", "start": 5693132, "end": 5693340, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x56decc to 0x56df9c (208 bytes)\n// \n// 14 xrefs:\n// > ListButtonBar::goToPage @ 0x5a8924\n// > ListButtonBar::goToPage @ 0x5a8930\n// > EditButtonBar::goToPage @ 0x73ab54\n// > EditButtonBar::goToPage @ 0x73ab68\n// > EditButtonBar::loadFromItems @ 0x73b2fc\n// > EditButtonBar::loadFromItems @ 0x73b308\n// > LevelSelectLayer::init @ 0x79e114\n// > LevelSelectLayer::init @ 0x79e474\n// > LevelSelectLayer::init @ 0x79e480\n// > GauntletSelectLayer::goToPage @ 0x918848\n// > WorldSelectLayer::goToPage @ 0x95f408\n// > SecretRewardsLayer::init @ 0xa638a8\n// > SecretRewardsLayer::init @ 0xa638b4\n// > <???> @ 0x948a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid BoomScrollLayer::instantMoveToPage(BoomScrollLayer *a1, int a2)\n{\n  _BYTE v4[8]; // [xsp+30h] [xbp+30h] BYREF\n  cocos2d::CCPoint v5; // 0:kr00_8.8\n\n  if ( a1->m_looped || (a2 & 0x80000000) == 0 && a2 < BoomScrollLayer::getTotalPages(a1) )\n  {\n    cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n    a1->m_pageMoving = 0;\n    v5 = BoomScrollLayer::positionForPageWithNumber(a1, a2);\n    ((void (__fastcall *)(ExtendedLayer *, _BYTE *, float, float))a1->m_extendedLayer->setPosition)(\n      a1->m_extendedLayer,\n      v4,\n      v5.x,\n      v5.y);\n    a1->m_page = a2;\n    if ( a1->m_looped )\n      BoomScrollLayer::repositionPagesLooped(a1);\n    BoomScrollLayer::moveToPageEnded(a1);\n  }\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x56decc to 0x56df9c (208 bytes)\n; \n; 14 xrefs:\n; > ListButtonBar::goToPage @ 0x5a8924\n; > ListButtonBar::goToPage @ 0x5a8930\n; > EditButtonBar::goToPage @ 0x73ab54\n; > EditButtonBar::goToPage @ 0x73ab68\n; > EditButtonBar::loadFromItems @ 0x73b2fc\n; > EditButtonBar::loadFromItems @ 0x73b308\n; > LevelSelectLayer::init @ 0x79e114\n; > LevelSelectLayer::init @ 0x79e474\n; > LevelSelectLayer::init @ 0x79e480\n; > GauntletSelectLayer::goToPage @ 0x918848\n; > WorldSelectLayer::goToPage @ 0x95f408\n; > SecretRewardsLayer::init @ 0xa638a8\n; > SecretRewardsLayer::init @ 0xa638b4\n; > <???> @ 0x948a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x56decc\nMOV             X29, SP                                                ; +0x4, 0x56ded0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x56ded4\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x56ded8\nMOV             X19, X0                                                ; +0x10, 0x56dedc\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x56dee0\nMOV             W22, W1                                                ; +0x18, 0x56dee4\nLDRB            W1, [X0,#0x1AC]                                        ; +0x1c, 0x56dee8\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x56deec\nLDR             X2, [X2]                                               ; +0x24, 0x56def0\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x28, 0x56def4\nCBNZ            W1, loc_56DF30                                         ; +0x2c, 0x56def8\nTBNZ            W22, #0x1F, loc_56DF0C                                 ; +0x30, 0x56defc\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x34, 0x56df00\nCMP             W22, W0                                                ; +0x38, 0x56df04\nB.LT            loc_56DF30                                             ; +0x3c, 0x56df08\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x40, 0x56df0c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x44, 0x56df10\nLDR             X0, [X20]                                              ; +0x48, 0x56df14\nCMP             X1, X0                                                 ; +0x4c, 0x56df18\nB.NE            loc_56DF98                                             ; +0x50, 0x56df1c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x54, 0x56df20\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x58, 0x56df24\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x5c, 0x56df28\nRET                                                                    ; +0x60, 0x56df2c\nLDR             X0, [X19,#0x1F0]; this                                 ; +0x64, 0x56df30\nMOV             W1, #2; int                                            ; +0x68, 0x56df34\nADD             X21, X29, #0x40+var_10                                 ; +0x6c, 0x56df38\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x70, 0x56df3c\nSTRB            WZR, [X19,#0x220]                                      ; +0x74, 0x56df40\nMOV             X8, X21                                                ; +0x78, 0x56df44\nMOV             X0, X19; this                                          ; +0x7c, 0x56df48\nMOV             W1, W22; int                                           ; +0x80, 0x56df4c\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x84, 0x56df50\nLDR             X2, [X19,#0x1F0]                                       ; +0x88, 0x56df54\nMOV             X1, X21                                                ; +0x8c, 0x56df58\nMOV             X0, X2                                                 ; +0x90, 0x56df5c\nLDR             X2, [X2]                                               ; +0x94, 0x56df60\nLDR             X2, [X2,#0xB8]                                         ; +0x98, 0x56df64\nBLR             X2                                                     ; +0x9c, 0x56df68\nSTR             W22, [X19,#0x244]                                      ; +0xa0, 0x56df6c\nLDRB            W0, [X19,#0x1AC]                                       ; +0xa4, 0x56df70\nCBNZ            W0, loc_56DF84                                         ; +0xa8, 0x56df74\nMOV             X0, X19; this                                          ; +0xac, 0x56df78\nBL              _ZN15BoomScrollLayer15moveToPageEndedEv; BoomScrollLayer::moveToPageEnded(void) ; +0xb0, 0x56df7c\nB               loc_56DF0C                                             ; +0xb4, 0x56df80\nMOV             X0, X19; this                                          ; +0xb8, 0x56df84\nBL              _ZN15BoomScrollLayer21repositionPagesLoopedEv; BoomScrollLayer::repositionPagesLooped(void) ; +0xbc, 0x56df88\nMOV             X0, X19; this                                          ; +0xc0, 0x56df8c\nBL              _ZN15BoomScrollLayer15moveToPageEndedEv; BoomScrollLayer::moveToPageEnded(void) ; +0xc4, 0x56df90\nB               loc_56DF0C                                             ; +0xc8, 0x56df94\nBL              .__stack_chk_fail                                      ; +0xcc, 0x56df98", "xrefs": ["ListButtonBar::goToPage @ 0x5a8924", "ListButtonBar::goToPage @ 0x5a8930", "EditButtonBar::goToPage @ 0x73ab54", "EditButtonBar::goToPage @ 0x73ab68", "EditButtonBar::loadFromItems @ 0x73b2fc", "EditButtonBar::loadFromItems @ 0x73b308", "LevelSelectLayer::init @ 0x79e114", "LevelSelectLayer::init @ 0x79e474", "LevelSelectLayer::init @ 0x79e480", "GauntletSelectLayer::goToPage @ 0x918848", "WorldSelectLayer::goToPage @ 0x95f408", "SecretRewardsLayer::init @ 0xa638a8", "SecretRewardsLayer::init @ 0xa638b4", "<???> @ 0x948a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}