{"type": "func", "start": 4297275452, "end": 4297275624, "name": "GauntletLayer::loadLevelsFinished", "pseudocode": "// \n// GauntletLayer::loadLevelsFinished from 0x10023383c to 0x1002338e8 (172 bytes)\n// \n// 2 xrefs:\n// > sub_100233908 @ 0x10023390c\n// > <???> @ 0x1007c6de0\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::loadLevelsFinished(GauntletLayer *a1, cocos2d::CCArray *a2, const char *a3, int a4)\n{\n  bool v7; // w0\n  bool v8; // w21\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  char v10; // [xsp+17h] [xbp-39h]\n  void *v11[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v12; // [xsp+2Fh] [xbp-21h]\n\n  GameLevelManager::sharedState();\n  GameLevelManager::getGauntletSearchKey(a1->m_gauntletType, v11);\n  sub_100009900(__p, (char *)a3);\n  v7 = sub_1000045BC(v11, __p);\n  v8 = v7;\n  if ( v10 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( !v8 )\n      goto LABEL_6;\n    goto LABEL_5;\n  }\n  if ( v7 )\n  {\nLABEL_5:\n    ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);\n    GauntletLayer::setupGauntlet(a1, a2);\n  }\nLABEL_6:\n  if ( v12 < 0 )\n    operator delete(v11[0]);\n}", "assembly": "; \n; GauntletLayer::loadLevelsFinished from 0x10023383c to 0x1002338e8 (172 bytes)\n; \n; 2 xrefs:\n; > sub_100233908 @ 0x10023390c\n; > <???> @ 0x1007c6de0\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, #0x60                                          ; +0x0, 0x10023383c\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x100233840\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x100233844\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x100233848\nADD             X29, SP, #0x50                                         ; +0x10, 0x10023384c\nMOV             X21, X2                                                ; +0x14, 0x100233850\nMOV             X19, X1                                                ; +0x18, 0x100233854\nMOV             X20, X0                                                ; +0x1c, 0x100233858\nBL              GameLevelManager__sharedState                          ; +0x20, 0x10023385c\nLDR             W1, [X20,#0x1B0]                                       ; +0x24, 0x100233860\nADD             X8, SP, #0x50+var_38                                   ; +0x28, 0x100233864\nBL              GameLevelManager__getGauntletSearchKey                 ; +0x2c, 0x100233868\nMOV             X0, SP; int                                            ; +0x30, 0x10023386c\nMOV             X1, X21; __s                                           ; +0x34, 0x100233870\nBL              sub_100009900                                          ; +0x38, 0x100233874\nADD             X0, SP, #0x50+var_38                                   ; +0x3c, 0x100233878\nMOV             X1, SP                                                 ; +0x40, 0x10023387c\nBL              sub_1000045BC                                          ; +0x44, 0x100233880\nMOV             X21, X0                                                ; +0x48, 0x100233884\nLDRSB           W8, [SP,#0x50+var_39]                                  ; +0x4c, 0x100233888\nTBNZ            W8, #0x1F, loc_100233898                               ; +0x50, 0x10023388c\nTBNZ            W21, #0, loc_1002338A4                                 ; +0x54, 0x100233890\nB               loc_1002338C4                                          ; +0x58, 0x100233894\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x5c, 0x100233898\nBL              __ZdlPv; operator delete(void *)                       ; +0x60, 0x10023389c\nTBZ             W21, #0, loc_1002338C4                                 ; +0x64, 0x1002338a0\nLDR             X0, [X20,#0x1A8]                                       ; +0x68, 0x1002338a4\nLDR             X8, [X0]                                               ; +0x6c, 0x1002338a8\nLDR             X8, [X8,#0x148]                                        ; +0x70, 0x1002338ac\nMOV             W1, #0                                                 ; +0x74, 0x1002338b0\nBLR             X8                                                     ; +0x78, 0x1002338b4\nMOV             X0, X20                                                ; +0x7c, 0x1002338b8\nMOV             X1, X19                                                ; +0x80, 0x1002338bc\nBL              GauntletLayer__setupGauntlet                           ; +0x84, 0x1002338c0\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x88, 0x1002338c4\nTBZ             W8, #0x1F, loc_1002338D4                               ; +0x8c, 0x1002338c8\nLDR             X0, [SP,#0x50+var_38]; __p                             ; +0x90, 0x1002338cc\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x1002338d0\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x98, 0x1002338d4\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x9c, 0x1002338d8\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xa0, 0x1002338dc\nADD             SP, SP, #0x60 ; '`'                                    ; +0xa4, 0x1002338e0\nRET                                                                    ; +0xa8, 0x1002338e4", "xrefs": ["sub_100233908 @ 0x10023390c", "<???> @ 0x1007c6de0"], "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"}