{"type": "func", "start": 3024172, "end": 3024462, "name": "BoomScrollLayer::moveToPage", "pseudocode": "// \n// BoomScrollLayer::moveToPage from 0x2e252c to 0x2e264e (290 bytes)\n// \n// 9 xrefs:\n// > BoomScrollLayer::ccTouchEnded @ 0x2e27a0\n// > BoomScrollLayer::addPage @ 0x2e28da\n// > BoomScrollLayer::removePage @ 0x2e294e\n// > ListButtonBar::goToPage @ 0x2fd456\n// > LevelSelectLayer::onNext @ 0x4085f0\n// > LevelSelectLayer::onPrev @ 0x40860e\n// > GauntletSelectLayer::goToPage @ 0x4d7206\n// > WorldSelectLayer::goToPage @ 0x4fd090\n// > SecretRewardsLayer::goToPage @ 0x58513e\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::moveToPage(BoomScrollLayer *a1, int a2)\n{\n  float m_touchQuotient; // s15\n  float m_minSpeed; // s14\n  bool v6; // fzf\n  bool v7; // fnf\n  float v8; // s15\n  float v9; // s15\n  float m_unkFloat2; // s14\n  cocos2d::CCEaseElasticOut *v11; // r0\n  float v12; // r2\n  cocos2d::CCSequence *v13; // r0\n  cocos2d::CCSequence *v14; // r9\n  cocos2d::CCFiniteTimeAction *v15; // r0\n  cocos2d::CCAction *v16; // r5\n  BoomScrollLayerDelegate *m_delegate; // r0\n  cocos2d::CCPoint v18; // [sp+4h] [bp-10h] BYREF\n\n  if ( a1->m_looped || a2 >= 0 && a2 < BoomScrollLayer::getTotalPages(a1) )\n  {\n    a1->m_pageMoving = 1;\n    BoomScrollLayer::positionForPageWithNumber(&v18, a1, a2);\n    cocos2d::CCPoint::operator=(&a1->m_position, &v18);\n    cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n    m_touchQuotient = a1->m_touchQuotient;\n    if ( m_touchQuotient > a1->m_maxSpeed )\n    {\n      v8 = 0.4;\n    }\n    else\n    {\n      m_minSpeed = a1->m_minSpeed;\n      v6 = m_touchQuotient == m_minSpeed;\n      v7 = m_touchQuotient < m_minSpeed;\n      v8 = 0.6;\n      if ( v7 || v6 )\n        v8 = 0.8;\n    }\n    a1->m_touchQuotient = 0.0;\n    v9 = v8 * 1.2;\n    m_unkFloat2 = a1->m_unkFloat2;\n    if ( m_unkFloat2 > 0.0 )\n      v9 = v9 * m_unkFloat2;\n    v11 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(v9, &a1->m_position);\n    v13 = (cocos2d::CCSequence *)cocos2d::CCEaseElasticOut::create(v11, (cocos2d::CCActionInterval *)0x3F000000, v12);\n    v18.y = 0.0;\n    LODWORD(v18.x) = BoomScrollLayer::moveToPageEnded;\n    v14 = v13;\n    v15 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, BoomScrollLayer::moveToPageEnded, 0);\n    v16 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v14, v15, 0);\n    cocos2d::CCNode::runAction(a1->m_extendedLayer, v16);\n    v16->setTag(v16, 2);\n    m_delegate = a1->m_delegate;\n    a1->m_page = a2;\n    if ( m_delegate )\n      m_delegate->scrollLayerWillScrollToPage(m_delegate, a1, a2);\n    if ( a1->m_looped )\n      BoomScrollLayer::repositionPagesLooped(a1);\n  }\n}", "assembly": "; \n; BoomScrollLayer::moveToPage from 0x2e252c to 0x2e264e (290 bytes)\n; \n; 9 xrefs:\n; > BoomScrollLayer::ccTouchEnded @ 0x2e27a0\n; > BoomScrollLayer::addPage @ 0x2e28da\n; > BoomScrollLayer::removePage @ 0x2e294e\n; > ListButtonBar::goToPage @ 0x2fd456\n; > LevelSelectLayer::onNext @ 0x4085f0\n; > LevelSelectLayer::onPrev @ 0x40860e\n; > GauntletSelectLayer::goToPage @ 0x4d7206\n; > WorldSelectLayer::goToPage @ 0x4fd090\n; > SecretRewardsLayer::goToPage @ 0x58513e\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 - 0x2E2536)                ; +0x0, 0x2e252c\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x2e252e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e2532\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e2534\nSUB             SP, SP, #0x14                                          ; +0xa, 0x2e2536\nMOV             R4, R0                                                 ; +0xc, 0x2e2538\nLDR             R2, [R3]                                               ; +0xe, 0x2e253a\nMOV             R7, R1                                                 ; +0x10, 0x2e253c\nMOV             R6, R3                                                 ; +0x12, 0x2e253e\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x2e2540\nLDRB.W          R2, [R0,#0x14C]                                        ; +0x16, 0x2e2542\nCBNZ            R2, loc_2E2554                                         ; +0x1a, 0x2e2546\nCMP             R1, #0                                                 ; +0x1c, 0x2e2548\nBLT             loc_2E263C                                             ; +0x1e, 0x2e254a\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x20, 0x2e254c\nCMP             R7, R0                                                 ; +0x24, 0x2e2550\nBGE             loc_2E263C                                             ; +0x26, 0x2e2552\nADD             R5, SP, #0x14+var_10                                   ; +0x28, 0x2e2554\nADD.W           R8, R4, #0x178                                         ; +0x2a, 0x2e2556\nMOVS            R3, #1                                                 ; +0x2e, 0x2e255a\nMOV             R2, R7                                                 ; +0x30, 0x2e255c\nSTRB.W          R3, [R4,#0x1A8]                                        ; +0x32, 0x2e255e\nMOV             R0, R5; this                                           ; +0x36, 0x2e2562\nMOV             R1, R4; int                                            ; +0x38, 0x2e2564\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x3a, 0x2e2566\nMOV             R1, R5                                                 ; +0x3e, 0x2e256a\nMOV             R0, R8                                                 ; +0x40, 0x2e256c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x42, 0x2e256e\nLDR.W           R0, [R4,#0x180]; this                                  ; +0x46, 0x2e2572\nMOVS            R1, #2; int                                            ; +0x4a, 0x2e2576\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x4c, 0x2e2578\nVLDR            S15, [R4,#0x148]                                       ; +0x50, 0x2e257c\nVLDR            S14, [R4,#0x198]                                       ; +0x54, 0x2e2580\nVCMPE.F32       S15, S14                                               ; +0x58, 0x2e2584\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x2e2588\nBGT             loc_2E25AA                                             ; +0x60, 0x2e258c\nVLDR            S14, [R4,#0x19C]                                       ; +0x62, 0x2e258e\nVCMPE.F32       S15, S14                                               ; +0x66, 0x2e2592\nVLDR            S14, =0.8                                              ; +0x6a, 0x2e2596\nVLDR            S15, =0.6                                              ; +0x6e, 0x2e259a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x72, 0x2e259e\nIT LE                                                                  ; +0x76, 0x2e25a2\nVMOVLE.F32      S15, S14                                               ; +0x78, 0x2e25a4\nB               loc_2E25AE                                             ; +0x7c, 0x2e25a8\nVLDR            S15, =0.4                                              ; +0x7e, 0x2e25aa\nMOVS            R3, #0                                                 ; +0x82, 0x2e25ae\nMOV             R1, R8; float                                          ; +0x84, 0x2e25b0\nSTR.W           R3, [R4,#0x148]                                        ; +0x86, 0x2e25b2\nMOV.W           R8, #0                                                 ; +0x8a, 0x2e25b6\nVLDR            S14, =1.2                                              ; +0x8e, 0x2e25ba\nVMUL.F32        S15, S15, S14                                          ; +0x92, 0x2e25be\nVLDR            S14, [R4,#0x1A0]                                       ; +0x96, 0x2e25c2\nVCMPE.F32       S14, #0.0                                              ; +0x9a, 0x2e25c6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x9e, 0x2e25ca\nIT GT                                                                  ; +0xa2, 0x2e25ce\nVMULGT.F32      S15, S15, S14                                          ; +0xa4, 0x2e25d0\nVMOV            R0, S15; this                                          ; +0xa8, 0x2e25d4\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0xac, 0x2e25d8\nMOV.W           R1, #0x3F000000; cocos2d::CCActionInterval *           ; +0xb0, 0x2e25dc\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xb4, 0x2e25e0\nLDR             R3, =(_ZN15BoomScrollLayer15moveToPageEndedEv_ptr - 0x2E25EE) ; +0xb8, 0x2e25e4\nSTR.W           R8, [SP,#0x14+var_C]                                   ; +0xba, 0x2e25e6\nADD             R3, PC; _ZN15BoomScrollLayer15moveToPageEndedEv_ptr    ; +0xbe, 0x2e25ea\nLDR             R3, [R3]; BoomScrollLayer::moveToPageEnded(void)       ; +0xc0, 0x2e25ec\nSTR             R3, [SP,#0x14+var_10]                                  ; +0xc2, 0x2e25ee\nLDM.W           R5, {R1,R2}                                            ; +0xc4, 0x2e25f0\nMOV             R9, R0                                                 ; +0xc8, 0x2e25f4\nMOV             R0, R4                                                 ; +0xca, 0x2e25f6\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xcc, 0x2e25f8\nMOV             R2, R8                                                 ; +0xd0, 0x2e25fc\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0xd2, 0x2e25fe\nMOV             R0, R9; this                                           ; +0xd4, 0x2e2600\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xd6, 0x2e2602\nMOV             R5, R0                                                 ; +0xda, 0x2e2606\nLDR.W           R0, [R4,#0x180]; this                                  ; +0xdc, 0x2e2608\nMOV             R1, R5; cocos2d::CCAction *                            ; +0xe0, 0x2e260c\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xe2, 0x2e260e\nLDR             R3, [R5]                                               ; +0xe6, 0x2e2612\nMOV             R0, R5                                                 ; +0xe8, 0x2e2614\nMOVS            R1, #2                                                 ; +0xea, 0x2e2616\nLDR             R3, [R3,#0x24]                                         ; +0xec, 0x2e2618\nBLX             R3                                                     ; +0xee, 0x2e261a\nLDR.W           R0, [R4,#0x1A4]                                        ; +0xf0, 0x2e261c\nSTR.W           R7, [R4,#0x1CC]                                        ; +0xf4, 0x2e2620\nCBZ             R0, loc_2E2630                                         ; +0xf8, 0x2e2624\nLDR             R3, [R0]                                               ; +0xfa, 0x2e2626\nMOV             R1, R4                                                 ; +0xfc, 0x2e2628\nMOV             R2, R7                                                 ; +0xfe, 0x2e262a\nLDR             R3, [R3,#0xC]                                          ; +0x100, 0x2e262c\nBLX             R3                                                     ; +0x102, 0x2e262e\nLDRB.W          R3, [R4,#0x14C]                                        ; +0x104, 0x2e2630\nCBZ             R3, loc_2E263C                                         ; +0x108, 0x2e2634\nMOV             R0, R4; this                                           ; +0x10a, 0x2e2636\nBL              _ZN15BoomScrollLayer21repositionPagesLoopedEv; BoomScrollLayer::repositionPagesLooped(void) ; +0x10c, 0x2e2638\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x110, 0x2e263c\nLDR             R3, [R6]                                               ; +0x112, 0x2e263e\nCMP             R2, R3                                                 ; +0x114, 0x2e2640\nBEQ             loc_2E2648                                             ; +0x116, 0x2e2642\nBLX             __stack_chk_fail                                       ; +0x118, 0x2e2644\nADD             SP, SP, #0x14                                          ; +0x11c, 0x2e2648\nPOP.W           {R4-R9,PC}                                             ; +0x11e, 0x2e264a", "xrefs": ["BoomScrollLayer::ccTouchEnded @ 0x2e27a0", "BoomScrollLayer::addPage @ 0x2e28da", "BoomScrollLayer::removePage @ 0x2e294e", "ListButtonBar::goToPage @ 0x2fd456", "LevelSelectLayer::onNext @ 0x4085f0", "LevelSelectLayer::onPrev @ 0x40860e", "GauntletSelectLayer::goToPage @ 0x4d7206", "WorldSelectLayer::goToPage @ 0x4fd090", "SecretRewardsLayer::goToPage @ 0x58513e"], "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"}