{"type": "func", "start": 4298334084, "end": 4298334220, "name": "GameStatsManager::isGauntletChestUnlocked", "pseudocode": "// \n// GameStatsManager::isGauntletChestUnlocked from 0x100335f84 to 0x10033600c (136 bytes)\n// \n// 2 xrefs:\n// > GauntletSelectLayer::onPlay @ 0x1001bf9ac\n// > GameStatsManager::recountSpecialStats @ 0x100335b3c\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// local variable allocation has failed, the output may be wrong!\nbool __fastcall GameStatsManager::isGauntletChestUnlocked(GameStatsManager *a1, int a2)\n{\n  char isSpecialChestUnlocked; // w19\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  __int64 v6; // [xsp+10h] [xbp-30h]\n  void *v7[2]; // [xsp+18h] [xbp-28h] BYREF\n  __int64 v8; // [xsp+28h] [xbp-18h]\n\n  GameStatsManager::getGauntletRewardKey(v7, a1, *(_QWORD *)&a2);\n  if ( SHIBYTE(v8) < 0 )\n  {\n    sub_1000097D0(__p, v7[0], (unsigned __int64)v7[1]);\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)v7;\n    v6 = v8;\n  }\n  isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(a1, __p);\n  if ( SHIBYTE(v6) < 0 )\n    operator delete(__p[0]);\n  if ( SHIBYTE(v8) < 0 )\n    operator delete(v7[0]);\n  return isSpecialChestUnlocked;\n}", "assembly": "; \n; GameStatsManager::isGauntletChestUnlocked from 0x100335f84 to 0x10033600c (136 bytes)\n; \n; 2 xrefs:\n; > GauntletSelectLayer::onPlay @ 0x1001bf9ac\n; > GameStatsManager::recountSpecialStats @ 0x100335b3c\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, 0x100335f84\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x100335f88\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x100335f8c\nADD             X29, SP, #0x40                                         ; +0xc, 0x100335f90\nMOV             X19, X0                                                ; +0x10, 0x100335f94\nADD             X8, SP, #0x40+var_28                                   ; +0x14, 0x100335f98\nBL              GameStatsManager__getGauntletRewardKey                 ; +0x18, 0x100335f9c\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x1c, 0x100335fa0\nTBNZ            W8, #0x1F, loc_100335FBC                               ; +0x20, 0x100335fa4\nLDUR            Q0, [SP,#0x40+var_28]                                  ; +0x24, 0x100335fa8\nSTR             Q0, [SP,#0x40+__p]                                     ; +0x28, 0x100335fac\nLDR             X8, [SP,#0x28]                                         ; +0x2c, 0x100335fb0\nSTR             X8, [SP,#0x40+var_30]                                  ; +0x30, 0x100335fb4\nB               loc_100335FC8                                          ; +0x34, 0x100335fb8\nLDP             X1, X2, [SP,#0x40+var_28]; __src                       ; +0x38, 0x100335fbc\nMOV             X0, SP; __dst                                          ; +0x3c, 0x100335fc0\nBL              sub_1000097D0                                          ; +0x40, 0x100335fc4\nMOV             X1, SP                                                 ; +0x44, 0x100335fc8\nMOV             X0, X19                                                ; +0x48, 0x100335fcc\nBL              GameStatsManager__isSpecialChestUnlocked               ; +0x4c, 0x100335fd0\nMOV             X19, X0                                                ; +0x50, 0x100335fd4\nLDRSB           W8, [SP,#0x40+var_30+7]                                ; +0x54, 0x100335fd8\nTBZ             W8, #0x1F, loc_100335FE8                               ; +0x58, 0x100335fdc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x5c, 0x100335fe0\nBL              __ZdlPv; operator delete(void *)                       ; +0x60, 0x100335fe4\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x64, 0x100335fe8\nTBZ             W8, #0x1F, loc_100335FF8                               ; +0x68, 0x100335fec\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0x6c, 0x100335ff0\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x100335ff4\nMOV             X0, X19                                                ; +0x74, 0x100335ff8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x78, 0x100335ffc\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x7c, 0x100336000\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x80, 0x100336004\nRET                                                                    ; +0x84, 0x100336008", "xrefs": ["GauntletSelectLayer::onPlay @ 0x1001bf9ac", "GameStatsManager::recountSpecialStats @ 0x100335b3c"], "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"}