{"type": "func", "start": 4296798620, "end": 4296798788, "name": "GauntletSelectLayer::onRefresh", "pseudocode": "// \n// GauntletSelectLayer::onRefresh from 0x1001bf19c to 0x1001bf244 (168 bytes)\n// \n// 1 xrefs:\n// > GauntletSelectLayer::init @ 0x1001bef34\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::onRefresh(GauntletSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  BoomScrollLayer *m_scrollLayer; // x0\n  GameLevelManager *v4; // x0\n  GameLevelManager *v5; // x0\n\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_refreshButton->setVisible)(a1->m_refreshButton, 0);\n  m_scrollLayer = a1->m_scrollLayer;\n  if ( m_scrollLayer )\n  {\n    ((void (__fastcall *)(BoomScrollLayer *, __int64))m_scrollLayer->removeFromParentAndCleanup)(m_scrollLayer, 1);\n    a1->m_scrollLayer = nullptr;\n  }\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_leftButton->setVisible)(a1->m_leftButton, 0);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_rightButton->setVisible)(\n    a1->m_rightButton,\n    a1->m_scrollLayer != nullptr);\n  v4 = GameLevelManager::sharedState();\n  GameLevelManager::resetGauntlets(v4);\n  ((void (__fastcall *)(LoadingCircle *, __int64))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 1);\n  GameLevelManager::sharedState()->m_levelManagerDelegate = &a1->LevelManagerDelegate;\n  v5 = GameLevelManager::sharedState();\n  GameLevelManager::getGauntlets(v5);\n}", "assembly": "; \n; GauntletSelectLayer::onRefresh from 0x1001bf19c to 0x1001bf244 (168 bytes)\n; \n; 1 xrefs:\n; > GauntletSelectLayer::init @ 0x1001bef34\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001bf19c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001bf1a0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001bf1a4\nMOV             X19, X0                                                ; +0xc, 0x1001bf1a8\nLDR             X0, [X0,#0x1D0]                                        ; +0x10, 0x1001bf1ac\nLDR             X8, [X0]                                               ; +0x14, 0x1001bf1b0\nLDR             X8, [X8,#0x148]                                        ; +0x18, 0x1001bf1b4\nMOV             W1, #0                                                 ; +0x1c, 0x1001bf1b8\nBLR             X8                                                     ; +0x20, 0x1001bf1bc\nLDR             X0, [X19,#0x1B8]                                       ; +0x24, 0x1001bf1c0\nCBZ             X0, loc_1001BF1DC                                      ; +0x28, 0x1001bf1c4\nLDR             X8, [X0]                                               ; +0x2c, 0x1001bf1c8\nLDR             X8, [X8,#0x200]                                        ; +0x30, 0x1001bf1cc\nMOV             W1, #1                                                 ; +0x34, 0x1001bf1d0\nBLR             X8                                                     ; +0x38, 0x1001bf1d4\nSTR             XZR, [X19,#0x1B8]                                      ; +0x3c, 0x1001bf1d8\nLDR             X0, [X19,#0x1C0]                                       ; +0x40, 0x1001bf1dc\nLDR             X8, [X0]                                               ; +0x44, 0x1001bf1e0\nLDR             X8, [X8,#0x148]                                        ; +0x48, 0x1001bf1e4\nMOV             W1, #0                                                 ; +0x4c, 0x1001bf1e8\nBLR             X8                                                     ; +0x50, 0x1001bf1ec\nLDR             X0, [X19,#0x1C8]                                       ; +0x54, 0x1001bf1f0\nLDR             X8, [X19,#0x1B8]                                       ; +0x58, 0x1001bf1f4\nCMP             X8, #0                                                 ; +0x5c, 0x1001bf1f8\nCSET            W1, NE                                                 ; +0x60, 0x1001bf1fc\nLDR             X8, [X0]                                               ; +0x64, 0x1001bf200\nLDR             X8, [X8,#0x148]                                        ; +0x68, 0x1001bf204\nBLR             X8                                                     ; +0x6c, 0x1001bf208\nBL              GameLevelManager__sharedState                          ; +0x70, 0x1001bf20c\nBL              GameLevelManager__resetGauntlets                       ; +0x74, 0x1001bf210\nLDR             X0, [X19,#0x1E8]                                       ; +0x78, 0x1001bf214\nLDR             X8, [X0]                                               ; +0x7c, 0x1001bf218\nLDR             X8, [X8,#0x148]                                        ; +0x80, 0x1001bf21c\nMOV             W1, #1                                                 ; +0x84, 0x1001bf220\nBLR             X8                                                     ; +0x88, 0x1001bf224\nBL              GameLevelManager__sharedState                          ; +0x8c, 0x1001bf228\nADD             X8, X19, #0x1A0                                        ; +0x90, 0x1001bf22c\nSTR             X8, [X0,#0x2D0]                                        ; +0x94, 0x1001bf230\nBL              GameLevelManager__sharedState                          ; +0x98, 0x1001bf234\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x9c, 0x1001bf238\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa0, 0x1001bf23c\nB               GameLevelManager__getGauntlets                         ; +0xa4, 0x1001bf240", "xrefs": ["GauntletSelectLayer::init @ 0x1001bef34"], "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"}