{"type": "func", "start": 4296799876, "end": 4296800120, "name": "GauntletSelectLayer::loadLevelsFinished", "pseudocode": "// \n// GauntletSelectLayer::loadLevelsFinished from 0x1001bf684 to 0x1001bf778 (244 bytes)\n// \n// 2 xrefs:\n// > sub_1001BF794 @ 0x1001bf798\n// > <???> @ 0x1007b69e0\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::loadLevelsFinished(\n        GauntletSelectLayer *a1,\n        cocos2d::CCArray *a2,\n        const char *a3,\n        int a4)\n{\n  bool v5; // w20\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v7; // [xsp+17h] [xbp-29h]\n  void *v8[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v9; // [xsp+2Fh] [xbp-11h]\n\n  sub_100009900(v8, (char *)a3);\n  sub_100009900(__p, \"get_gauntlets\");\n  v5 = sub_1000045BC(v8, __p);\n  if ( v7 < 0 )\n    operator delete(__p[0]);\n  if ( v9 < 0 )\n  {\n    operator delete(v8[0]);\n    if ( !v5 )\n      return;\n  }\n  else if ( !v5 )\n  {\n    return;\n  }\n  ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);\n  ((void (__fastcall *)(TextArea *, _QWORD))a1->m_tryAgainText->setVisible)(a1->m_tryAgainText, 0);\n  GauntletSelectLayer::setupGauntlets(a1);\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  ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_refreshButton->setVisible)(a1->m_refreshButton, 1);\n}", "assembly": "; \n; GauntletSelectLayer::loadLevelsFinished from 0x1001bf684 to 0x1001bf778 (244 bytes)\n; \n; 2 xrefs:\n; > sub_1001BF794 @ 0x1001bf798\n; > <???> @ 0x1007b69e0\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, #0x50                                          ; +0x0, 0x1001bf684\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1001bf688\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1001bf68c\nADD             X29, SP, #0x40                                         ; +0xc, 0x1001bf690\nMOV             X1, X2; __s                                            ; +0x10, 0x1001bf694\nMOV             X19, X0                                                ; +0x14, 0x1001bf698\nADD             X0, SP, #0x40+var_28; int                              ; +0x18, 0x1001bf69c\nBL              sub_100009900                                          ; +0x1c, 0x1001bf6a0\nADRL            X1, aGetGauntlets; \"get_gauntlets\"                     ; +0x20, 0x1001bf6a4\nMOV             X0, SP; int                                            ; +0x28, 0x1001bf6ac\nBL              sub_100009900                                          ; +0x2c, 0x1001bf6b0\nADD             X0, SP, #0x40+var_28                                   ; +0x30, 0x1001bf6b4\nMOV             X1, SP                                                 ; +0x34, 0x1001bf6b8\nBL              sub_1000045BC                                          ; +0x38, 0x1001bf6bc\nMOV             X20, X0                                                ; +0x3c, 0x1001bf6c0\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x40, 0x1001bf6c4\nTBZ             W8, #0x1F, loc_1001BF6D4                               ; +0x44, 0x1001bf6c8\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x48, 0x1001bf6cc\nBL              __ZdlPv; operator delete(void *)                       ; +0x4c, 0x1001bf6d0\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x50, 0x1001bf6d4\nTBNZ            W8, #0x1F, loc_1001BF768                               ; +0x54, 0x1001bf6d8\nTBZ             W20, #0, loc_1001BF758                                 ; +0x58, 0x1001bf6dc\nLDR             X0, [X19,#0x1E8]                                       ; +0x5c, 0x1001bf6e0\nLDR             X8, [X0]                                               ; +0x60, 0x1001bf6e4\nLDR             X8, [X8,#0x148]                                        ; +0x64, 0x1001bf6e8\nMOV             W1, #0                                                 ; +0x68, 0x1001bf6ec\nBLR             X8                                                     ; +0x6c, 0x1001bf6f0\nLDR             X0, [X19,#0x1E0]                                       ; +0x70, 0x1001bf6f4\nLDR             X8, [X0]                                               ; +0x74, 0x1001bf6f8\nLDR             X8, [X8,#0x148]                                        ; +0x78, 0x1001bf6fc\nMOV             W1, #0                                                 ; +0x7c, 0x1001bf700\nBLR             X8                                                     ; +0x80, 0x1001bf704\nMOV             X0, X19                                                ; +0x84, 0x1001bf708\nBL              GauntletSelectLayer__setupGauntlets                    ; +0x88, 0x1001bf70c\nLDP             X8, X0, [X19,#0x1B8]                                   ; +0x8c, 0x1001bf710\nCMP             X8, #0                                                 ; +0x90, 0x1001bf714\nCSET            W1, NE                                                 ; +0x94, 0x1001bf718\nLDR             X8, [X0]                                               ; +0x98, 0x1001bf71c\nLDR             X8, [X8,#0x148]                                        ; +0x9c, 0x1001bf720\nBLR             X8                                                     ; +0xa0, 0x1001bf724\nLDR             X0, [X19,#0x1C8]                                       ; +0xa4, 0x1001bf728\nLDR             X8, [X19,#0x1B8]                                       ; +0xa8, 0x1001bf72c\nCMP             X8, #0                                                 ; +0xac, 0x1001bf730\nCSET            W1, NE                                                 ; +0xb0, 0x1001bf734\nLDR             X8, [X0]                                               ; +0xb4, 0x1001bf738\nLDR             X8, [X8,#0x148]                                        ; +0xb8, 0x1001bf73c\nBLR             X8                                                     ; +0xbc, 0x1001bf740\nLDR             X0, [X19,#0x1D0]                                       ; +0xc0, 0x1001bf744\nLDR             X8, [X0]                                               ; +0xc4, 0x1001bf748\nLDR             X8, [X8,#0x148]                                        ; +0xc8, 0x1001bf74c\nMOV             W1, #1                                                 ; +0xcc, 0x1001bf750\nBLR             X8                                                     ; +0xd0, 0x1001bf754\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xd4, 0x1001bf758\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xd8, 0x1001bf75c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xdc, 0x1001bf760\nRET                                                                    ; +0xe0, 0x1001bf764\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0xe4, 0x1001bf768\nBL              __ZdlPv; operator delete(void *)                       ; +0xe8, 0x1001bf76c\nTBNZ            W20, #0, loc_1001BF6E0                                 ; +0xec, 0x1001bf770\nB               loc_1001BF758                                          ; +0xf0, 0x1001bf774", "xrefs": ["sub_1001BF794 @ 0x1001bf798", "<???> @ 0x1007b69e0"], "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"}