{"type": "func", "start": 4296196104, "end": 4296196320, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x10012c008 to 0x10012c0e0 (216 bytes)\n// \n// 11 xrefs:\n// > ListButtonBar::goToPage @ 0x100168264\n// > ListButtonBar::goToPage @ 0x100168270\n// > GauntletSelectLayer::goToPage @ 0x1001bfdc0\n// > SecretRewardsLayer::init @ 0x1002e9844\n// > SecretRewardsLayer::init @ 0x1002e9850\n// > LevelSelectLayer::init @ 0x100401e38\n// > LevelSelectLayer::init @ 0x100401e74\n// > EditButtonBar::loadFromItems @ 0x1004213b4\n// > EditButtonBar::loadFromItems @ 0x1004213c0\n// > EditButtonBar::goToPage @ 0x100421538\n// > EditButtonBar::goToPage @ 0x10042154c\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 __fastcall BoomScrollLayer::instantMoveToPage(BoomScrollLayer *a1, int a2)\n{\n  __int64 v4; // x8\n  __n128 v5; // q0\n  __n128 v6; // q1\n  int v7; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( a1->m_looped )\n    goto LABEL_6;\n  if ( (a2 & 0x80000000) == 0 )\n  {\n    v4 = 472;\n    if ( a1->m_dynamic )\n      v4 = 440;\n    if ( (int)sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                     + v4)) > a2 )\n    {\nLABEL_6:\n      cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n      a1->m_pageMoving = 0;\n      v5.n128_f32[0] = (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1)\n                             - a1->m_pageOffset)\n                     * (float)-a2;\n      v6.n128_u32[0] = 0;\n      sub_100022980(v5, v6, &v7);\n      ((void (__fastcall *)(ExtendedLayer *, int *))a1->m_extendedLayer->setPosition)(a1->m_extendedLayer, &v7);\n      a1->m_page = a2;\n      if ( a1->m_looped )\n        BoomScrollLayer::repositionPagesLooped(a1);\n      BoomScrollLayer::moveToPageEnded(a1);\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x10012c008 to 0x10012c0e0 (216 bytes)\n; \n; 11 xrefs:\n; > ListButtonBar::goToPage @ 0x100168264\n; > ListButtonBar::goToPage @ 0x100168270\n; > GauntletSelectLayer::goToPage @ 0x1001bfdc0\n; > SecretRewardsLayer::init @ 0x1002e9844\n; > SecretRewardsLayer::init @ 0x1002e9850\n; > LevelSelectLayer::init @ 0x100401e38\n; > LevelSelectLayer::init @ 0x100401e74\n; > EditButtonBar::loadFromItems @ 0x1004213b4\n; > EditButtonBar::loadFromItems @ 0x1004213c0\n; > EditButtonBar::goToPage @ 0x100421538\n; > EditButtonBar::goToPage @ 0x10042154c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x10012c008\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x10012c00c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10012c010\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10012c014\nADD             X29, SP, #0x30                                         ; +0x10, 0x10012c018\nMOV             X20, X1                                                ; +0x14, 0x10012c01c\nMOV             X19, X0                                                ; +0x18, 0x10012c020\nLDRB            W8, [X0,#0x1AC]                                        ; +0x1c, 0x10012c024\nTBNZ            W8, #0, loc_10012C054                                  ; +0x20, 0x10012c028\nTBNZ            W20, #0x1F, loc_10012C0CC                              ; +0x24, 0x10012c02c\nLDRB            W8, [X19,#0x1C0]                                       ; +0x28, 0x10012c030\nCMP             W8, #0                                                 ; +0x2c, 0x10012c034\nMOV             W8, #0x1D8                                             ; +0x30, 0x10012c038\nMOV             W9, #0x1B8                                             ; +0x34, 0x10012c03c\nCSEL            X8, X9, X8, NE                                         ; +0x38, 0x10012c040\nLDR             X0, [X19,X8]                                           ; +0x3c, 0x10012c044\nBL              sub_10024A36C                                          ; +0x40, 0x10012c048\nCMP             W0, W20                                                ; +0x44, 0x10012c04c\nB.LE            loc_10012C0CC                                          ; +0x48, 0x10012c050\nLDR             X0, [X19,#0x1F0]                                       ; +0x4c, 0x10012c054\nMOV             W1, #2                                                 ; +0x50, 0x10012c058\nBL              cocos2d__CCNode__stopActionByTag                       ; +0x54, 0x10012c05c\nSTRB            WZR, [X19,#0x220]                                      ; +0x58, 0x10012c060\nNEG             W8, W20                                                ; +0x5c, 0x10012c064\nSCVTF           S8, W8                                                 ; +0x60, 0x10012c068\nLDR             X8, [X19]                                              ; +0x64, 0x10012c06c\nLDR             X8, [X8,#0x138]                                        ; +0x68, 0x10012c070\nMOV             X0, X19                                                ; +0x6c, 0x10012c074\nBLR             X8                                                     ; +0x70, 0x10012c078\nLDR             S0, [X0]                                               ; +0x74, 0x10012c07c\nLDR             S1, [X19,#0x248]                                       ; +0x78, 0x10012c080\nFSUB            S0, S0, S1                                             ; +0x7c, 0x10012c084\nFMUL            S0, S0, S8                                             ; +0x80, 0x10012c088\nADD             X0, SP, #0x30+var_28                                   ; +0x84, 0x10012c08c\nFMOV            S1, WZR                                                ; +0x88, 0x10012c090\nBL              sub_100022980                                          ; +0x8c, 0x10012c094\nLDR             X0, [X19,#0x1F0]                                       ; +0x90, 0x10012c098\nLDR             X8, [X0]                                               ; +0x94, 0x10012c09c\nLDR             X8, [X8,#0xB8]                                         ; +0x98, 0x10012c0a0\nADD             X1, SP, #0x30+var_28                                   ; +0x9c, 0x10012c0a4\nBLR             X8                                                     ; +0xa0, 0x10012c0a8\nSTR             W20, [X19,#0x244]                                      ; +0xa4, 0x10012c0ac\nLDRB            W8, [X19,#0x1AC]                                       ; +0xa8, 0x10012c0b0\nCMP             W8, #1                                                 ; +0xac, 0x10012c0b4\nB.NE            loc_10012C0C4                                          ; +0xb0, 0x10012c0b8\nMOV             X0, X19                                                ; +0xb4, 0x10012c0bc\nBL              BoomScrollLayer__repositionPagesLooped                 ; +0xb8, 0x10012c0c0\nMOV             X0, X19                                                ; +0xbc, 0x10012c0c4\nBL              BoomScrollLayer__moveToPageEnded                       ; +0xc0, 0x10012c0c8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc4, 0x10012c0cc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc8, 0x10012c0d0\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xcc, 0x10012c0d4\nADD             SP, SP, #0x40 ; '@'                                    ; +0xd0, 0x10012c0d8\nRET                                                                    ; +0xd4, 0x10012c0dc", "xrefs": ["ListButtonBar::goToPage @ 0x100168264", "ListButtonBar::goToPage @ 0x100168270", "GauntletSelectLayer::goToPage @ 0x1001bfdc0", "SecretRewardsLayer::init @ 0x1002e9844", "SecretRewardsLayer::init @ 0x1002e9850", "LevelSelectLayer::init @ 0x100401e38", "LevelSelectLayer::init @ 0x100401e74", "EditButtonBar::loadFromItems @ 0x1004213b4", "EditButtonBar::loadFromItems @ 0x1004213c0", "EditButtonBar::goToPage @ 0x100421538", "EditButtonBar::goToPage @ 0x10042154c"], "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"}