{"type": "func", "start": 4296801668, "end": 4296801908, "name": "GauntletSelectLayer::goToPage", "pseudocode": "// \n// GauntletSelectLayer::goToPage from 0x1001bfd84 to 0x1001bfe74 (240 bytes)\n// \n// 4 xrefs:\n// > GauntletSelectLayer::onPrev @ 0x1001bf070\n// > GauntletSelectLayer::onNext @ 0x1001bf084\n// > GauntletSelectLayer::setupGauntlets @ 0x1001bf648\n// > GauntletSelectLayer::setupGauntlets @ 0x1001bf658\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 GauntletSelectLayer::goToPage(GauntletSelectLayer *a1, int a2, bool a3)\n{\n  _BOOL4 v3; // w21\n  BoomScrollLayer *m_scrollLayer; // x0\n  cocos2d::CCDelayTime *v7; // x20\n  char v8; // w0\n  __int64 v9; // x1\n  __int64 v10; // x2\n  __int64 v11; // x3\n  __int64 v12; // x4\n  __int64 v13; // x5\n  __int64 v14; // x6\n  __int64 v15; // x7\n  cocos2d::CCSequence *v16; // x20\n  cocos2d::SEL_CallFunc v17; // 0:x1.16\n\n  v3 = a3;\n  BoomScrollLayer::getTotalPages(a1->m_scrollLayer);\n  BoomScrollLayer::quickUpdate(a1->m_scrollLayer);\n  m_scrollLayer = a1->m_scrollLayer;\n  if ( v3 )\n    BoomScrollLayer::instantMoveToPage(m_scrollLayer, a2);\n  else\n    BoomScrollLayer::moveToPage(m_scrollLayer, a2);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_leftButton->setVisible)(\n    a1->m_leftButton,\n    a1->m_scrollLayer != nullptr);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_rightButton->setVisible)(\n    a1->m_rightButton,\n    a1->m_scrollLayer != nullptr);\n  a1->m_playBlocked = 1;\n  cocos2d::CCNode::stopActionByTag(a1, 1001);\n  v7 = cocos2d::CCDelayTime::create(0.3);\n  v17.ptr = (void (*)(void))GauntletSelectLayer::unblockPlay;\n  v17.adj = 0;\n  v8 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v17);\n  v16 = sub_10018A494(v7, v9, v10, v11, v12, v13, v14, v15, v8);\n  ((void (__fastcall *)(cocos2d::CCSequence *, __int64))v16->setTag)(v16, 1001);\n  cocos2d::CCNode::runAction(a1, v16);\n}", "assembly": "; \n; GauntletSelectLayer::goToPage from 0x1001bfd84 to 0x1001bfe74 (240 bytes)\n; \n; 4 xrefs:\n; > GauntletSelectLayer::onPrev @ 0x1001bf070\n; > GauntletSelectLayer::onNext @ 0x1001bf084\n; > GauntletSelectLayer::setupGauntlets @ 0x1001bf648\n; > GauntletSelectLayer::setupGauntlets @ 0x1001bf658\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, 0x1001bfd84\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1001bfd88\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001bfd8c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001bfd90\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001bfd94\nMOV             X21, X2                                                ; +0x14, 0x1001bfd98\nMOV             X20, X1                                                ; +0x18, 0x1001bfd9c\nMOV             X19, X0                                                ; +0x1c, 0x1001bfda0\nLDR             X0, [X0,#0x1B8]                                        ; +0x20, 0x1001bfda4\nBL              BoomScrollLayer__getTotalPages                         ; +0x24, 0x1001bfda8\nLDR             X0, [X19,#0x1B8]                                       ; +0x28, 0x1001bfdac\nBL              BoomScrollLayer__quickUpdate                           ; +0x2c, 0x1001bfdb0\nLDR             X0, [X19,#0x1B8]                                       ; +0x30, 0x1001bfdb4\nMOV             X1, X20                                                ; +0x34, 0x1001bfdb8\nCBZ             W21, loc_1001BFDC8                                     ; +0x38, 0x1001bfdbc\nBL              BoomScrollLayer__instantMoveToPage                     ; +0x3c, 0x1001bfdc0\nB               loc_1001BFDCC                                          ; +0x40, 0x1001bfdc4\nBL              BoomScrollLayer__moveToPage                            ; +0x44, 0x1001bfdc8\nLDP             X8, X0, [X19,#0x1B8]                                   ; +0x48, 0x1001bfdcc\nCMP             X8, #0                                                 ; +0x4c, 0x1001bfdd0\nCSET            W1, NE                                                 ; +0x50, 0x1001bfdd4\nLDR             X8, [X0]                                               ; +0x54, 0x1001bfdd8\nLDR             X8, [X8,#0x148]                                        ; +0x58, 0x1001bfddc\nBLR             X8                                                     ; +0x5c, 0x1001bfde0\nLDR             X0, [X19,#0x1C8]                                       ; +0x60, 0x1001bfde4\nLDR             X8, [X19,#0x1B8]                                       ; +0x64, 0x1001bfde8\nCMP             X8, #0                                                 ; +0x68, 0x1001bfdec\nCSET            W1, NE                                                 ; +0x6c, 0x1001bfdf0\nLDR             X8, [X0]                                               ; +0x70, 0x1001bfdf4\nLDR             X8, [X8,#0x148]                                        ; +0x74, 0x1001bfdf8\nBLR             X8                                                     ; +0x78, 0x1001bfdfc\nMOV             W8, #1                                                 ; +0x7c, 0x1001bfe00\nSTRB            W8, [X19,#0x1F8]                                       ; +0x80, 0x1001bfe04\nMOV             X0, X19                                                ; +0x84, 0x1001bfe08\nMOV             W1, #0x3E9                                             ; +0x88, 0x1001bfe0c\nBL              cocos2d__CCNode__stopActionByTag                       ; +0x8c, 0x1001bfe10\nADRP            X8, #dword_100635360@PAGE                              ; +0x90, 0x1001bfe14\nLDR             S0, [X8,#dword_100635360@PAGEOFF]                      ; +0x94, 0x1001bfe18\nBL              cocos2d__CCDelayTime__create                           ; +0x98, 0x1001bfe1c\nMOV             X20, X0                                                ; +0x9c, 0x1001bfe20\nADRL            X1, GauntletSelectLayer__unblockPlay                   ; +0xa0, 0x1001bfe24\nMOV             X0, X19                                                ; +0xa8, 0x1001bfe2c\nMOV             X2, #0                                                 ; +0xac, 0x1001bfe30\nBL              cocos2d__CCCallFunc__create                            ; +0xb0, 0x1001bfe34\nSTP             X0, XZR, [SP,#0x30+var_30]                             ; +0xb4, 0x1001bfe38\nMOV             X0, X20                                                ; +0xb8, 0x1001bfe3c\nBL              sub_10018A494                                          ; +0xbc, 0x1001bfe40\nMOV             X20, X0                                                ; +0xc0, 0x1001bfe44\nLDR             X8, [X0]                                               ; +0xc4, 0x1001bfe48\nLDR             X8, [X8,#0x48]                                         ; +0xc8, 0x1001bfe4c\nMOV             W1, #0x3E9                                             ; +0xcc, 0x1001bfe50\nBLR             X8                                                     ; +0xd0, 0x1001bfe54\nMOV             X0, X19                                                ; +0xd4, 0x1001bfe58\nMOV             X1, X20                                                ; +0xd8, 0x1001bfe5c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xdc, 0x1001bfe60\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xe0, 0x1001bfe64\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xe4, 0x1001bfe68\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe8, 0x1001bfe6c\nB               cocos2d__CCNode__runAction                             ; +0xec, 0x1001bfe70", "xrefs": ["GauntletSelectLayer::onPrev @ 0x1001bf070", "GauntletSelectLayer::onNext @ 0x1001bf084", "GauntletSelectLayer::setupGauntlets @ 0x1001bf648", "GauntletSelectLayer::setupGauntlets @ 0x1001bf658"], "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"}