{"type": "func", "start": 3939356, "end": 3939646, "name": "BoomScrollLayer::moveToPage", "pseudocode": "// \n// BoomScrollLayer::moveToPage from 0x3c1c1c to 0x3c1d3e (290 bytes)\n// \n// 9 xrefs:\n// > BoomScrollLayer::ccTouchEnded @ 0x3c1e90\n// > BoomScrollLayer::addPage @ 0x3c1fca\n// > BoomScrollLayer::removePage @ 0x3c203e\n// > ListButtonBar::goToPage @ 0x3e6a82\n// > LevelSelectLayer::onNext @ 0x511734\n// > LevelSelectLayer::onPrev @ 0x511752\n// > GauntletSelectLayer::goToPage @ 0x60a25e\n// > WorldSelectLayer::goToPage @ 0x62cc60\n// > SecretRewardsLayer::goToPage @ 0x6ca5ee\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:31 +0000\n// \n\ncocos2d::CCArray **__fastcall BoomScrollLayer::moveToPage(cocos2d::CCArray **this, cocos2d::CCArray *a2)\n{\n  cocos2d::CCArray **v2; // r4\n  const cocos2d::CCPoint *v4; // r2\n  float v5; // s15\n  float v6; // s14\n  bool v7; // fzf\n  bool v8; // fnf\n  float v9; // s15\n  float v10; // s15\n  float v11; // s14\n  cocos2d::CCEaseElasticOut *v12; // r0\n  float v13; // r2\n  cocos2d::CCSequence *v14; // r0\n  cocos2d::CCSequence *v15; // r9\n  cocos2d::CCFiniteTimeAction *v16; // r0\n  cocos2d::CCAction *v17; // r5\n  _DWORD v18[2]; // [sp+4h] [bp-10h] BYREF\n\n  v2 = this;\n  if ( *((_BYTE *)this + 336)\n    || (int)a2 >= 0 && (this = (cocos2d::CCArray **)BoomScrollLayer::getTotalPages(this), (int)a2 < (int)this) )\n  {\n    *((_BYTE *)v2 + 424) = 1;\n    BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v18, (float *)v2, (int)a2);\n    cocos2d::CCPoint::operator=(v2 + 94, v18);\n    cocos2d::CCNode::stopActionByTag(v2[96], 2);\n    v5 = *((float *)v2 + 83);\n    if ( v5 > *((float *)v2 + 102) )\n    {\n      v9 = 0.4;\n    }\n    else\n    {\n      v6 = *((float *)v2 + 103);\n      v7 = v5 == v6;\n      v8 = v5 < v6;\n      v9 = 0.6;\n      if ( v8 || v7 )\n        v9 = 0.8;\n    }\n    v2[83] = nullptr;\n    v10 = v9 * 1.2;\n    v11 = *((float *)v2 + 104);\n    if ( v11 > 0.0 )\n      v10 = v10 * v11;\n    v12 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(\n                                         (cocos2d::CCMoveTo *)LODWORD(v10),\n                                         COERCE_FLOAT(v2 + 94),\n                                         v4);\n    v14 = (cocos2d::CCSequence *)cocos2d::CCEaseElasticOut::create(v12, (cocos2d::CCActionInterval *)0x3F000000, v13);\n    v18[1] = 0;\n    v18[0] = BoomScrollLayer::moveToPageEnded;\n    v15 = v14;\n    v16 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, BoomScrollLayer::moveToPageEnded, 0);\n    v17 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v16, 0);\n    cocos2d::CCNode::runAction(v2[96], v17);\n    (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v17 + 36))(v17, 2);\n    this = (cocos2d::CCArray **)v2[105];\n    v2[115] = a2;\n    if ( this )\n      this = (cocos2d::CCArray **)(*((int (__fastcall **)(cocos2d::CCArray **, cocos2d::CCArray **, cocos2d::CCArray *))*this\n                                   + 3))(\n                                    this,\n                                    v2,\n                                    a2);\n    if ( *((_BYTE *)v2 + 336) )\n      return (cocos2d::CCArray **)BoomScrollLayer::repositionPagesLooped((BoomScrollLayer *)v2);\n  }\n  return this;\n}", "assembly": "; \n; BoomScrollLayer::moveToPage from 0x3c1c1c to 0x3c1d3e (290 bytes)\n; \n; 9 xrefs:\n; > BoomScrollLayer::ccTouchEnded @ 0x3c1e90\n; > BoomScrollLayer::addPage @ 0x3c1fca\n; > BoomScrollLayer::removePage @ 0x3c203e\n; > ListButtonBar::goToPage @ 0x3e6a82\n; > LevelSelectLayer::onNext @ 0x511734\n; > LevelSelectLayer::onPrev @ 0x511752\n; > GauntletSelectLayer::goToPage @ 0x60a25e\n; > WorldSelectLayer::goToPage @ 0x62cc60\n; > SecretRewardsLayer::goToPage @ 0x6ca5ee\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:31 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3C1C26)                ; +0x0, 0x3c1c1c\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x3c1c1e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3c1c22\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3c1c24\nSUB             SP, SP, #0x14                                          ; +0xa, 0x3c1c26\nMOV             R4, R0                                                 ; +0xc, 0x3c1c28\nLDR             R2, [R3]                                               ; +0xe, 0x3c1c2a\nMOV             R7, R1                                                 ; +0x10, 0x3c1c2c\nMOV             R6, R3                                                 ; +0x12, 0x3c1c2e\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x3c1c30\nLDRB.W          R2, [R0,#0x150]                                        ; +0x16, 0x3c1c32\nCBNZ            R2, loc_3C1C44                                         ; +0x1a, 0x3c1c36\nCMP             R1, #0                                                 ; +0x1c, 0x3c1c38\nBLT             loc_3C1D2C                                             ; +0x1e, 0x3c1c3a\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x20, 0x3c1c3c\nCMP             R7, R0                                                 ; +0x24, 0x3c1c40\nBGE             loc_3C1D2C                                             ; +0x26, 0x3c1c42\nADD             R5, SP, #0x14+var_10                                   ; +0x28, 0x3c1c44\nADD.W           R8, R4, #0x178                                         ; +0x2a, 0x3c1c46\nMOVS            R3, #1                                                 ; +0x2e, 0x3c1c4a\nMOV             R2, R7                                                 ; +0x30, 0x3c1c4c\nSTRB.W          R3, [R4,#0x1A8]                                        ; +0x32, 0x3c1c4e\nMOV             R0, R5; this                                           ; +0x36, 0x3c1c52\nMOV             R1, R4; int                                            ; +0x38, 0x3c1c54\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x3a, 0x3c1c56\nMOV             R1, R5                                                 ; +0x3e, 0x3c1c5a\nMOV             R0, R8                                                 ; +0x40, 0x3c1c5c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x42, 0x3c1c5e\nLDR.W           R0, [R4,#0x180]; this                                  ; +0x46, 0x3c1c62\nMOVS            R1, #2; int                                            ; +0x4a, 0x3c1c66\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x4c, 0x3c1c68\nVLDR            S15, [R4,#0x14C]                                       ; +0x50, 0x3c1c6c\nVLDR            S14, [R4,#0x198]                                       ; +0x54, 0x3c1c70\nVCMPE.F32       S15, S14                                               ; +0x58, 0x3c1c74\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x3c1c78\nBGT             loc_3C1C9A                                             ; +0x60, 0x3c1c7c\nVLDR            S14, [R4,#0x19C]                                       ; +0x62, 0x3c1c7e\nVCMPE.F32       S15, S14                                               ; +0x66, 0x3c1c82\nVLDR            S14, =0.8                                              ; +0x6a, 0x3c1c86\nVLDR            S15, =0.6                                              ; +0x6e, 0x3c1c8a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x72, 0x3c1c8e\nIT LE                                                                  ; +0x76, 0x3c1c92\nVMOVLE.F32      S15, S14                                               ; +0x78, 0x3c1c94\nB               loc_3C1C9E                                             ; +0x7c, 0x3c1c98\nVLDR            S15, =0.4                                              ; +0x7e, 0x3c1c9a\nMOVS            R3, #0                                                 ; +0x82, 0x3c1c9e\nMOV             R1, R8; float                                          ; +0x84, 0x3c1ca0\nSTR.W           R3, [R4,#0x14C]                                        ; +0x86, 0x3c1ca2\nMOV.W           R8, #0                                                 ; +0x8a, 0x3c1ca6\nVLDR            S14, =1.2                                              ; +0x8e, 0x3c1caa\nVMUL.F32        S15, S15, S14                                          ; +0x92, 0x3c1cae\nVLDR            S14, [R4,#0x1A0]                                       ; +0x96, 0x3c1cb2\nVCMPE.F32       S14, #0.0                                              ; +0x9a, 0x3c1cb6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x9e, 0x3c1cba\nIT GT                                                                  ; +0xa2, 0x3c1cbe\nVMULGT.F32      S15, S15, S14                                          ; +0xa4, 0x3c1cc0\nVMOV            R0, S15; this                                          ; +0xa8, 0x3c1cc4\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0xac, 0x3c1cc8\nMOV.W           R1, #0x3F000000; cocos2d::CCActionInterval *           ; +0xb0, 0x3c1ccc\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xb4, 0x3c1cd0\nLDR             R3, =(_ZN15BoomScrollLayer15moveToPageEndedEv_ptr - 0x3C1CDE) ; +0xb8, 0x3c1cd4\nSTR.W           R8, [SP,#0x14+var_C]                                   ; +0xba, 0x3c1cd6\nADD             R3, PC; _ZN15BoomScrollLayer15moveToPageEndedEv_ptr    ; +0xbe, 0x3c1cda\nLDR             R3, [R3]; BoomScrollLayer::moveToPageEnded(void)       ; +0xc0, 0x3c1cdc\nSTR             R3, [SP,#0x14+var_10]                                  ; +0xc2, 0x3c1cde\nLDM.W           R5, {R1,R2}                                            ; +0xc4, 0x3c1ce0\nMOV             R9, R0                                                 ; +0xc8, 0x3c1ce4\nMOV             R0, R4                                                 ; +0xca, 0x3c1ce6\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xcc, 0x3c1ce8\nMOV             R2, R8                                                 ; +0xd0, 0x3c1cec\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0xd2, 0x3c1cee\nMOV             R0, R9; this                                           ; +0xd4, 0x3c1cf0\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xd6, 0x3c1cf2\nMOV             R5, R0                                                 ; +0xda, 0x3c1cf6\nLDR.W           R0, [R4,#0x180]; this                                  ; +0xdc, 0x3c1cf8\nMOV             R1, R5; cocos2d::CCAction *                            ; +0xe0, 0x3c1cfc\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xe2, 0x3c1cfe\nLDR             R3, [R5]                                               ; +0xe6, 0x3c1d02\nMOV             R0, R5                                                 ; +0xe8, 0x3c1d04\nMOVS            R1, #2                                                 ; +0xea, 0x3c1d06\nLDR             R3, [R3,#0x24]                                         ; +0xec, 0x3c1d08\nBLX             R3                                                     ; +0xee, 0x3c1d0a\nLDR.W           R0, [R4,#0x1A4]                                        ; +0xf0, 0x3c1d0c\nSTR.W           R7, [R4,#0x1CC]                                        ; +0xf4, 0x3c1d10\nCBZ             R0, loc_3C1D20                                         ; +0xf8, 0x3c1d14\nLDR             R3, [R0]                                               ; +0xfa, 0x3c1d16\nMOV             R1, R4                                                 ; +0xfc, 0x3c1d18\nMOV             R2, R7                                                 ; +0xfe, 0x3c1d1a\nLDR             R3, [R3,#0xC]                                          ; +0x100, 0x3c1d1c\nBLX             R3                                                     ; +0x102, 0x3c1d1e\nLDRB.W          R3, [R4,#0x150]                                        ; +0x104, 0x3c1d20\nCBZ             R3, loc_3C1D2C                                         ; +0x108, 0x3c1d24\nMOV             R0, R4; this                                           ; +0x10a, 0x3c1d26\nBL              _ZN15BoomScrollLayer21repositionPagesLoopedEv; BoomScrollLayer::repositionPagesLooped(void) ; +0x10c, 0x3c1d28\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x110, 0x3c1d2c\nLDR             R3, [R6]                                               ; +0x112, 0x3c1d2e\nCMP             R2, R3                                                 ; +0x114, 0x3c1d30\nBEQ             loc_3C1D38                                             ; +0x116, 0x3c1d32\nBLX             __stack_chk_fail                                       ; +0x118, 0x3c1d34\nADD             SP, SP, #0x14                                          ; +0x11c, 0x3c1d38\nPOP.W           {R4-R9,PC}                                             ; +0x11e, 0x3c1d3a", "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"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}