{"type": "func", "start": 5370779856, "end": 5370780141, "name": "GauntletSelectLayer::onRefresh", "pseudocode": "// \n// GauntletSelectLayer::onRefresh from 0x1401f98d0 to 0x1401f99ed (285 bytes)\n// \n// 2 xrefs:\n// > GauntletSelectLayer::init @ 0x1401f95fb\n// > <???> @ 0x1406cc990\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\n// Hidden C++ exception states: #wind=3\nvoid GauntletSelectLayer::onRefresh(GauntletSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  _BOOL8 v3; // rdx\n  BoomScrollLayer *m_scrollLayer; // r8\n  _BOOL8 v5; // rdx\n  __int64 v6; // rcx\n  _BOOL8 v7; // rdx\n  LevelManagerDelegate *v8; // rbx\n  GameLevelManager *v9; // rcx\n  void *v10; // [rsp+30h] [rbp+8h]\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  a1->m_refreshButton->setVisible(a1->m_refreshButton, 0);\n  m_scrollLayer = a1->m_scrollLayer;\n  if ( m_scrollLayer )\n  {\n    LOBYTE(v3) = 1;\n    m_scrollLayer->removeFromParentAndCleanup(a1->m_scrollLayer, v3);\n    m_scrollLayer = nullptr;\n    a1->m_scrollLayer = nullptr;\n  }\n  LOBYTE(v3) = m_scrollLayer != nullptr;\n  a1->m_leftButton->setVisible(a1->m_leftButton, v3);\n  LOBYTE(v5) = a1->m_scrollLayer != nullptr;\n  a1->m_rightButton->setVisible(a1->m_rightButton, v5);\n  v6 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v10 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v6 = qword_1406C2EC0;\n  }\n  cocos2d::CCDictionary::removeAllObjects(*(cocos2d::CCDictionary **)(v6 + 576));\n  LOBYTE(v7) = 1;\n  a1->m_loadingCircle->setVisible(a1->m_loadingCircle, v7);\n  v8 = &a1->LevelManagerDelegate;\n  v9 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v11 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v9 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  v9->m_levelManagerDelegate = v8;\n  GameLevelManager::getGauntlets(v9);\n}", "assembly": "; \n; GauntletSelectLayer::onRefresh from 0x1401f98d0 to 0x1401f99ed (285 bytes)\n; \n; 2 xrefs:\n; > GauntletSelectLayer::init @ 0x1401f95fb\n; > <???> @ 0x1406cc990\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\npush    rbx                                                            ; +0x0, 0x1401f98d0\nsub     rsp, 20h                                                       ; +0x2, 0x1401f98d2\nmov     rbx, rcx                                                       ; +0x6, 0x1401f98d6\nmov     rcx, [rcx+1D0h]                                                ; +0x9, 0x1401f98d9\nmov     rax, [rcx]                                                     ; +0x10, 0x1401f98e0\nxor     edx, edx                                                       ; +0x13, 0x1401f98e3\ncall    qword ptr [rax+140h]                                           ; +0x15, 0x1401f98e5\nmov     r8, [rbx+1B8h]                                                 ; +0x1b, 0x1401f98eb\ntest    r8, r8                                                         ; +0x22, 0x1401f98f2\njz      short loc_1401F990F                                            ; +0x25, 0x1401f98f5\nmov     rax, [r8]                                                      ; +0x27, 0x1401f98f7\nmov     dl, 1                                                          ; +0x2a, 0x1401f98fa\nmov     rcx, r8                                                        ; +0x2c, 0x1401f98fc\ncall    qword ptr [rax+1F8h]                                           ; +0x2f, 0x1401f98ff\nxor     r8d, r8d                                                       ; +0x35, 0x1401f9905\nmov     [rbx+1B8h], r8                                                 ; +0x38, 0x1401f9908\nmov     rcx, [rbx+1C0h]                                                ; +0x3f, 0x1401f990f\nmov     rax, [rcx]                                                     ; +0x46, 0x1401f9916\ntest    r8, r8                                                         ; +0x49, 0x1401f9919\nsetnz   dl                                                             ; +0x4c, 0x1401f991c\ncall    qword ptr [rax+140h]                                           ; +0x4f, 0x1401f991f\nmov     rcx, [rbx+1C8h]                                                ; +0x55, 0x1401f9925\nmov     rax, [rcx]                                                     ; +0x5c, 0x1401f992c\ncmp     qword ptr [rbx+1B8h], 0                                        ; +0x5f, 0x1401f992f\nsetnz   dl                                                             ; +0x67, 0x1401f9937\ncall    qword ptr [rax+140h]                                           ; +0x6a, 0x1401f993a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x70, 0x1401f9940\ntest    rcx, rcx                                                       ; +0x77, 0x1401f9947\njnz     short loc_1401F997B                                            ; +0x7a, 0x1401f994a\nmov     ecx, 3D0h; Size                                                ; +0x7c, 0x1401f994c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x81, 0x1401f9951\nmov     [rsp+28h+arg_0], rax                                           ; +0x86, 0x1401f9956\nmov     rcx, rax                                                       ; +0x8b, 0x1401f995b\ncall    sub_140141280                                                  ; +0x8e, 0x1401f995e\nnop                                                                    ; +0x93, 0x1401f9963\nmov     cs:qword_1406C2EC0, rax                                        ; +0x94, 0x1401f9964\nmov     rdx, [rax]                                                     ; +0x9b, 0x1401f996b\nmov     rcx, rax                                                       ; +0x9e, 0x1401f996e\ncall    qword ptr [rdx+48h]                                            ; +0xa1, 0x1401f9971\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xa4, 0x1401f9974\nmov     rcx, [rcx+240h]                                                ; +0xab, 0x1401f997b\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0xb2, 0x1401f9982\nmov     rcx, [rbx+1E8h]                                                ; +0xb8, 0x1401f9988\nmov     rax, [rcx]                                                     ; +0xbf, 0x1401f998f\nmov     dl, 1                                                          ; +0xc2, 0x1401f9992\ncall    qword ptr [rax+140h]                                           ; +0xc4, 0x1401f9994\nadd     rbx, 1A0h                                                      ; +0xca, 0x1401f999a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xd1, 0x1401f99a1\ntest    rcx, rcx                                                       ; +0xd8, 0x1401f99a8\njnz     short loc_1401F99DC                                            ; +0xdb, 0x1401f99ab\nmov     ecx, 3D0h; Size                                                ; +0xdd, 0x1401f99ad\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xe2, 0x1401f99b2\nmov     [rsp+28h+arg_0], rax                                           ; +0xe7, 0x1401f99b7\nmov     rcx, rax                                                       ; +0xec, 0x1401f99bc\ncall    sub_140141280                                                  ; +0xef, 0x1401f99bf\nnop                                                                    ; +0xf4, 0x1401f99c4\nmov     cs:qword_1406C2EC0, rax                                        ; +0xf5, 0x1401f99c5\nmov     rdx, [rax]                                                     ; +0xfc, 0x1401f99cc\nmov     rcx, rax                                                       ; +0xff, 0x1401f99cf\ncall    qword ptr [rdx+48h]                                            ; +0x102, 0x1401f99d2\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x105, 0x1401f99d5\nmov     [rcx+2D0h], rbx                                                ; +0x10c, 0x1401f99dc\nadd     rsp, 20h                                                       ; +0x113, 0x1401f99e3\npop     rbx                                                            ; +0x117, 0x1401f99e7\njmp     GameLevelManager__getGauntlets                                 ; +0x118, 0x1401f99e8", "xrefs": ["GauntletSelectLayer::init @ 0x1401f95fb", "<???> @ 0x1406cc990"], "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"}