{"type": "func", "start": 4297275664, "end": 4297275832, "name": "GauntletLayer::loadLevelsFailed", "pseudocode": "// \n// GauntletLayer::loadLevelsFailed from 0x100233910 to 0x1002339b8 (168 bytes)\n// \n// 2 xrefs:\n// > sub_1002339D8 @ 0x1002339dc\n// > <???> @ 0x1007c6de8\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 GauntletLayer::loadLevelsFailed(GauntletLayer *a1, const char *a2, int a3)\n{\n  bool v5; // w0\n  bool v6; // w20\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v8; // [xsp+17h] [xbp-29h]\n  void *v9[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v10; // [xsp+2Fh] [xbp-11h]\n\n  GameLevelManager::sharedState();\n  GameLevelManager::getGauntletSearchKey(a1->m_gauntletType, v9);\n  sub_100009900(__p, (char *)a2);\n  v5 = sub_1000045BC(v9, __p);\n  v6 = v5;\n  if ( v8 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( !v6 )\n      goto LABEL_6;\n    goto LABEL_5;\n  }\n  if ( v5 )\n  {\nLABEL_5:\n    ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);\n    ((void (__fastcall *)(TextArea *, __int64))a1->m_tryAgainText->setVisible)(a1->m_tryAgainText, 1);\n  }\nLABEL_6:\n  if ( v10 < 0 )\n    operator delete(v9[0]);\n}", "assembly": "; \n; GauntletLayer::loadLevelsFailed from 0x100233910 to 0x1002339b8 (168 bytes)\n; \n; 2 xrefs:\n; > sub_1002339D8 @ 0x1002339dc\n; > <???> @ 0x1007c6de8\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, 0x100233910\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x100233914\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x100233918\nADD             X29, SP, #0x40                                         ; +0xc, 0x10023391c\nMOV             X20, X1                                                ; +0x10, 0x100233920\nMOV             X19, X0                                                ; +0x14, 0x100233924\nBL              GameLevelManager__sharedState                          ; +0x18, 0x100233928\nLDR             W1, [X19,#0x1B0]                                       ; +0x1c, 0x10023392c\nADD             X8, SP, #0x40+var_28                                   ; +0x20, 0x100233930\nBL              GameLevelManager__getGauntletSearchKey                 ; +0x24, 0x100233934\nMOV             X0, SP; int                                            ; +0x28, 0x100233938\nMOV             X1, X20; __s                                           ; +0x2c, 0x10023393c\nBL              sub_100009900                                          ; +0x30, 0x100233940\nADD             X0, SP, #0x40+var_28                                   ; +0x34, 0x100233944\nMOV             X1, SP                                                 ; +0x38, 0x100233948\nBL              sub_1000045BC                                          ; +0x3c, 0x10023394c\nMOV             X20, X0                                                ; +0x40, 0x100233950\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x44, 0x100233954\nTBNZ            W8, #0x1F, loc_100233964                               ; +0x48, 0x100233958\nTBNZ            W20, #0, loc_100233970                                 ; +0x4c, 0x10023395c\nB               loc_100233998                                          ; +0x50, 0x100233960\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x54, 0x100233964\nBL              __ZdlPv; operator delete(void *)                       ; +0x58, 0x100233968\nTBZ             W20, #0, loc_100233998                                 ; +0x5c, 0x10023396c\nLDR             X0, [X19,#0x1A8]                                       ; +0x60, 0x100233970\nLDR             X8, [X0]                                               ; +0x64, 0x100233974\nLDR             X8, [X8,#0x148]                                        ; +0x68, 0x100233978\nMOV             W1, #0                                                 ; +0x6c, 0x10023397c\nBLR             X8                                                     ; +0x70, 0x100233980\nLDR             X0, [X19,#0x1D8]                                       ; +0x74, 0x100233984\nLDR             X8, [X0]                                               ; +0x78, 0x100233988\nLDR             X8, [X8,#0x148]                                        ; +0x7c, 0x10023398c\nMOV             W1, #1                                                 ; +0x80, 0x100233990\nBLR             X8                                                     ; +0x84, 0x100233994\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x88, 0x100233998\nTBZ             W8, #0x1F, loc_1002339A8                               ; +0x8c, 0x10023399c\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0x90, 0x1002339a0\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x1002339a4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x98, 0x1002339a8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x9c, 0x1002339ac\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa0, 0x1002339b0\nRET                                                                    ; +0xa4, 0x1002339b4", "xrefs": ["sub_1002339D8 @ 0x1002339dc", "<???> @ 0x1007c6de8"], "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"}