{"type": "func", "start": 4298336908, "end": 4298337044, "name": "GameStatsManager::isPathChestUnlocked", "pseudocode": "// \n// GameStatsManager::isPathChestUnlocked from 0x100336a8c to 0x100336b14 (136 bytes)\n// \n// 1 xrefs:\n// > GJPathsLayer::onPath @ 0x1003b8600\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::isPathChestUnlocked(GameStatsManager *a1, int a2)\n{\n  bool 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::getPathRewardKey(*(__int64 *)&a2, v7);\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((__int64)a1, (char *)__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::isPathChestUnlocked from 0x100336a8c to 0x100336b14 (136 bytes)\n; \n; 1 xrefs:\n; > GJPathsLayer::onPath @ 0x1003b8600\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, 0x100336a8c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x100336a90\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x100336a94\nADD             X29, SP, #0x40                                         ; +0xc, 0x100336a98\nMOV             X19, X0                                                ; +0x10, 0x100336a9c\nADD             X8, SP, #0x40+var_28                                   ; +0x14, 0x100336aa0\nBL              GameStatsManager__getPathRewardKey                     ; +0x18, 0x100336aa4\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x1c, 0x100336aa8\nTBNZ            W8, #0x1F, loc_100336AC4                               ; +0x20, 0x100336aac\nLDUR            Q0, [SP,#0x40+var_28]                                  ; +0x24, 0x100336ab0\nSTR             Q0, [SP,#0x40+__p]                                     ; +0x28, 0x100336ab4\nLDR             X8, [SP,#0x28]                                         ; +0x2c, 0x100336ab8\nSTR             X8, [SP,#0x40+var_30]                                  ; +0x30, 0x100336abc\nB               loc_100336AD0                                          ; +0x34, 0x100336ac0\nLDP             X1, X2, [SP,#0x40+var_28]; __src                       ; +0x38, 0x100336ac4\nMOV             X0, SP; __dst                                          ; +0x3c, 0x100336ac8\nBL              sub_1000097D0                                          ; +0x40, 0x100336acc\nMOV             X1, SP                                                 ; +0x44, 0x100336ad0\nMOV             X0, X19                                                ; +0x48, 0x100336ad4\nBL              GameStatsManager__isSpecialChestUnlocked               ; +0x4c, 0x100336ad8\nMOV             X19, X0                                                ; +0x50, 0x100336adc\nLDRSB           W8, [SP,#0x40+var_30+7]                                ; +0x54, 0x100336ae0\nTBZ             W8, #0x1F, loc_100336AF0                               ; +0x58, 0x100336ae4\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x5c, 0x100336ae8\nBL              __ZdlPv; operator delete(void *)                       ; +0x60, 0x100336aec\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x64, 0x100336af0\nTBZ             W8, #0x1F, loc_100336B00                               ; +0x68, 0x100336af4\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0x6c, 0x100336af8\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x100336afc\nMOV             X0, X19                                                ; +0x74, 0x100336b00\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x78, 0x100336b04\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x7c, 0x100336b08\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x80, 0x100336b0c\nRET                                                                    ; +0x84, 0x100336b10", "xrefs": ["GJPathsLayer::onPath @ 0x1003b8600"], "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"}