{"type": "func", "start": 4297413068, "end": 4297413312, "name": "GauntletSelectLayer::loadLevelsFinished", "pseudocode": "// \n// GauntletSelectLayer::loadLevelsFinished from 0x1002551cc to 0x1002552c0 (244 bytes)\n// \n// 2 xrefs:\n// > sub_1002552DC @ 0x1002552e0\n// > <???> @ 0x10090e348\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:33 +0000\n// \n\nvoid __fastcall GauntletSelectLayer::loadLevelsFinished(__int64 a1, int a2, char *__s)\n{\n  bool v4; // w20\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v6; // [xsp+17h] [xbp-29h]\n  void *v7[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v8; // [xsp+2Fh] [xbp-11h]\n\n  sub_100009900(v7, __s);\n  sub_100009900(__p, \"get_gauntlets\");\n  v4 = sub_1000045BC(v7, __p);\n  if ( v6 < 0 )\n    operator delete(__p[0]);\n  if ( v8 < 0 )\n  {\n    operator delete(v7[0]);\n    if ( !v4 )\n      return;\n  }\n  else if ( !v4 )\n  {\n    return;\n  }\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 488) + 344LL))(*(_QWORD *)(a1 + 488), 0);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 480) + 344LL))(*(_QWORD *)(a1 + 480), 0);\n  GauntletSelectLayer::setupGauntlets((__int64 *)a1);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 448) + 344LL))(\n    *(_QWORD *)(a1 + 448),\n    *(_QWORD *)(a1 + 440) != 0);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 456) + 344LL))(\n    *(_QWORD *)(a1 + 456),\n    *(_QWORD *)(a1 + 440) != 0);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 464) + 344LL))(*(_QWORD *)(a1 + 464), 1);\n}", "assembly": "; \n; GauntletSelectLayer::loadLevelsFinished from 0x1002551cc to 0x1002552c0 (244 bytes)\n; \n; 2 xrefs:\n; > sub_1002552DC @ 0x1002552e0\n; > <???> @ 0x10090e348\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:33 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1002551cc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1002551d0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1002551d4\nADD             X29, SP, #0x40                                         ; +0xc, 0x1002551d8\nMOV             X1, X2; __s                                            ; +0x10, 0x1002551dc\nMOV             X19, X0                                                ; +0x14, 0x1002551e0\nADD             X0, SP, #0x40+var_28; int                              ; +0x18, 0x1002551e4\nBL              sub_100009900                                          ; +0x1c, 0x1002551e8\nADRL            X1, aGetGauntlets; \"get_gauntlets\"                     ; +0x20, 0x1002551ec\nMOV             X0, SP; int                                            ; +0x28, 0x1002551f4\nBL              sub_100009900                                          ; +0x2c, 0x1002551f8\nADD             X0, SP, #0x40+var_28                                   ; +0x30, 0x1002551fc\nMOV             X1, SP                                                 ; +0x34, 0x100255200\nBL              sub_1000045BC                                          ; +0x38, 0x100255204\nMOV             X20, X0                                                ; +0x3c, 0x100255208\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x40, 0x10025520c\nTBZ             W8, #0x1F, loc_10025521C                               ; +0x44, 0x100255210\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x48, 0x100255214\nBL              __ZdlPv; operator delete(void *)                       ; +0x4c, 0x100255218\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x50, 0x10025521c\nTBNZ            W8, #0x1F, loc_1002552B0                               ; +0x54, 0x100255220\nTBZ             W20, #0, loc_1002552A0                                 ; +0x58, 0x100255224\nLDR             X0, [X19,#0x1E8]                                       ; +0x5c, 0x100255228\nLDR             X8, [X0]                                               ; +0x60, 0x10025522c\nLDR             X8, [X8,#0x158]                                        ; +0x64, 0x100255230\nMOV             W1, #0                                                 ; +0x68, 0x100255234\nBLR             X8                                                     ; +0x6c, 0x100255238\nLDR             X0, [X19,#0x1E0]                                       ; +0x70, 0x10025523c\nLDR             X8, [X0]                                               ; +0x74, 0x100255240\nLDR             X8, [X8,#0x158]                                        ; +0x78, 0x100255244\nMOV             W1, #0                                                 ; +0x7c, 0x100255248\nBLR             X8                                                     ; +0x80, 0x10025524c\nMOV             X0, X19                                                ; +0x84, 0x100255250\nBL              GauntletSelectLayer__setupGauntlets                    ; +0x88, 0x100255254\nLDP             X8, X0, [X19,#0x1B8]                                   ; +0x8c, 0x100255258\nCMP             X8, #0                                                 ; +0x90, 0x10025525c\nCSET            W1, NE                                                 ; +0x94, 0x100255260\nLDR             X8, [X0]                                               ; +0x98, 0x100255264\nLDR             X8, [X8,#0x158]                                        ; +0x9c, 0x100255268\nBLR             X8                                                     ; +0xa0, 0x10025526c\nLDR             X0, [X19,#0x1C8]                                       ; +0xa4, 0x100255270\nLDR             X8, [X19,#0x1B8]                                       ; +0xa8, 0x100255274\nCMP             X8, #0                                                 ; +0xac, 0x100255278\nCSET            W1, NE                                                 ; +0xb0, 0x10025527c\nLDR             X8, [X0]                                               ; +0xb4, 0x100255280\nLDR             X8, [X8,#0x158]                                        ; +0xb8, 0x100255284\nBLR             X8                                                     ; +0xbc, 0x100255288\nLDR             X0, [X19,#0x1D0]                                       ; +0xc0, 0x10025528c\nLDR             X8, [X0]                                               ; +0xc4, 0x100255290\nLDR             X8, [X8,#0x158]                                        ; +0xc8, 0x100255294\nMOV             W1, #1                                                 ; +0xcc, 0x100255298\nBLR             X8                                                     ; +0xd0, 0x10025529c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xd4, 0x1002552a0\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xd8, 0x1002552a4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xdc, 0x1002552a8\nRET                                                                    ; +0xe0, 0x1002552ac\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0xe4, 0x1002552b0\nBL              __ZdlPv; operator delete(void *)                       ; +0xe8, 0x1002552b4\nTBNZ            W20, #0, loc_100255228                                 ; +0xec, 0x1002552b8\nB               loc_1002552A0                                          ; +0xf0, 0x1002552bc", "xrefs": ["sub_1002552DC @ 0x1002552e0", "<???> @ 0x10090e348"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}