{"type": "func", "start": 3024052, "end": 3024168, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x2e24b4 to 0x2e2528 (116 bytes)\n// \n// 12 xrefs:\n// > ListButtonBar::goToPage @ 0x2fd444\n// > ListButtonBar::goToPage @ 0x2fd44e\n// > EditButtonBar::goToPage @ 0x3d9106\n// > EditButtonBar::goToPage @ 0x3d9114\n// > EditButtonBar::loadFromItems @ 0x3d96b8\n// > EditButtonBar::loadFromItems @ 0x3d96c2\n// > LevelSelectLayer::init @ 0x40a2b4\n// > LevelSelectLayer::init @ 0x40a2be\n// > GauntletSelectLayer::goToPage @ 0x4d7200\n// > WorldSelectLayer::goToPage @ 0x4fd08a\n// > SecretRewardsLayer::init @ 0x5871ba\n// > SecretRewardsLayer::init @ 0x5871c4\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  _BOOL4 m_looped; // r3\n  cocos2d::CCPoint v5; // [sp+4h] [bp-10h] BYREF\n\n  if ( a1->m_looped || a2 >= 0 && a2 < BoomScrollLayer::getTotalPages(a1) )\n  {\n    cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n    a1->m_pageMoving = 0;\n    BoomScrollLayer::positionForPageWithNumber(&v5, a1, a2);\n    a1->m_extendedLayer->setPosition(a1->m_extendedLayer, &v5);\n    m_looped = a1->m_looped;\n    a1->m_page = a2;\n    if ( m_looped )\n      BoomScrollLayer::repositionPagesLooped(a1);\n    BoomScrollLayer::moveToPageEnded(a1);\n  }\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x2e24b4 to 0x2e2528 (116 bytes)\n; \n; 12 xrefs:\n; > ListButtonBar::goToPage @ 0x2fd444\n; > ListButtonBar::goToPage @ 0x2fd44e\n; > EditButtonBar::goToPage @ 0x3d9106\n; > EditButtonBar::goToPage @ 0x3d9114\n; > EditButtonBar::loadFromItems @ 0x3d96b8\n; > EditButtonBar::loadFromItems @ 0x3d96c2\n; > LevelSelectLayer::init @ 0x40a2b4\n; > LevelSelectLayer::init @ 0x40a2be\n; > GauntletSelectLayer::goToPage @ 0x4d7200\n; > WorldSelectLayer::goToPage @ 0x4fd08a\n; > SecretRewardsLayer::init @ 0x5871ba\n; > SecretRewardsLayer::init @ 0x5871c4\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E24BC)                ; +0x0, 0x2e24b4\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x2e24b6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x2e24b8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x2e24ba\nSUB             SP, SP, #0x14                                          ; +0x8, 0x2e24bc\nMOV             R4, R0                                                 ; +0xa, 0x2e24be\nLDR             R2, [R3]                                               ; +0xc, 0x2e24c0\nMOV             R5, R1                                                 ; +0xe, 0x2e24c2\nMOV             R6, R3                                                 ; +0x10, 0x2e24c4\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x12, 0x2e24c6\nLDRB.W          R2, [R0,#0x14C]                                        ; +0x14, 0x2e24c8\nCBNZ            R2, loc_2E24DA                                         ; +0x18, 0x2e24cc\nCMP             R1, #0                                                 ; +0x1a, 0x2e24ce\nBLT             loc_2E2518                                             ; +0x1c, 0x2e24d0\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x1e, 0x2e24d2\nCMP             R5, R0                                                 ; +0x22, 0x2e24d6\nBGE             loc_2E2518                                             ; +0x24, 0x2e24d8\nADD             R7, SP, #0x14+var_10                                   ; +0x26, 0x2e24da\nLDR.W           R0, [R4,#0x180]; this                                  ; +0x28, 0x2e24dc\nMOVS            R1, #2; int                                            ; +0x2c, 0x2e24e0\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x2e, 0x2e24e2\nMOVS            R3, #0                                                 ; +0x32, 0x2e24e6\nMOV             R0, R7; this                                           ; +0x34, 0x2e24e8\nSTRB.W          R3, [R4,#0x1A8]                                        ; +0x36, 0x2e24ea\nMOV             R1, R4; int                                            ; +0x3a, 0x2e24ee\nMOV             R2, R5                                                 ; +0x3c, 0x2e24f0\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x3e, 0x2e24f2\nLDR.W           R0, [R4,#0x180]                                        ; +0x42, 0x2e24f6\nMOV             R1, R7                                                 ; +0x46, 0x2e24fa\nLDR             R3, [R0]                                               ; +0x48, 0x2e24fc\nLDR             R3, [R3,#0x5C]                                         ; +0x4a, 0x2e24fe\nBLX             R3                                                     ; +0x4c, 0x2e2500\nLDRB.W          R3, [R4,#0x14C]                                        ; +0x4e, 0x2e2502\nSTR.W           R5, [R4,#0x1CC]                                        ; +0x52, 0x2e2506\nCBZ             R3, loc_2E2512                                         ; +0x56, 0x2e250a\nMOV             R0, R4; this                                           ; +0x58, 0x2e250c\nBL              _ZN15BoomScrollLayer21repositionPagesLoopedEv; BoomScrollLayer::repositionPagesLooped(void) ; +0x5a, 0x2e250e\nMOV             R0, R4; this                                           ; +0x5e, 0x2e2512\nBL              _ZN15BoomScrollLayer15moveToPageEndedEv; BoomScrollLayer::moveToPageEnded(void) ; +0x60, 0x2e2514\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x64, 0x2e2518\nLDR             R3, [R6]                                               ; +0x66, 0x2e251a\nCMP             R2, R3                                                 ; +0x68, 0x2e251c\nBEQ             loc_2E2524                                             ; +0x6a, 0x2e251e\nBLX             __stack_chk_fail                                       ; +0x6c, 0x2e2520\nADD             SP, SP, #0x14                                          ; +0x70, 0x2e2524\nPOP             {R4-R7,PC}                                             ; +0x72, 0x2e2526", "xrefs": ["ListButtonBar::goToPage @ 0x2fd444", "ListButtonBar::goToPage @ 0x2fd44e", "EditButtonBar::goToPage @ 0x3d9106", "EditButtonBar::goToPage @ 0x3d9114", "EditButtonBar::loadFromItems @ 0x3d96b8", "EditButtonBar::loadFromItems @ 0x3d96c2", "LevelSelectLayer::init @ 0x40a2b4", "LevelSelectLayer::init @ 0x40a2be", "GauntletSelectLayer::goToPage @ 0x4d7200", "WorldSelectLayer::goToPage @ 0x4fd08a", "SecretRewardsLayer::init @ 0x5871ba", "SecretRewardsLayer::init @ 0x5871c4"], "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"}