{"type": "func", "start": 4295460896, "end": 4295461029, "name": "GameStatsManager::isPathChestUnlocked", "pseudocode": "// \n// GameStatsManager::isPathChestUnlocked from 0x100078820 to 0x1000788a5 (133 bytes)\n// \n// 1 xrefs:\n// > GJPathsLayer::onPath @ 0x1002fea87\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  double v2; // xmm0_8\n  char v3; // r15\n  bool isSpecialChestUnlocked; // bl\n  __int128 v6; // [rsp+8h] [rbp-48h] BYREF\n  void *v7; // [rsp+18h] [rbp-38h]\n  __int128 v8; // [rsp+20h] [rbp-30h] BYREF\n  void *__p; // [rsp+30h] [rbp-20h]\n\n  GameStatsManager::getPathRewardKey((size_t *)&v6, v2, *(__int64 *)&a2, a2);\n  v3 = v6;\n  if ( (v6 & 1) != 0 )\n  {\n    sub_100006B70(&v8, v7, *((unsigned __int64 *)&v6 + 1), v2);\n  }\n  else\n  {\n    __p = v7;\n    v2 = *(double *)&v6;\n    v8 = v6;\n  }\n  isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)a1, (__int64)&v8, v2);\n  if ( (v8 & 1) != 0 )\n    operator delete(__p);\n  if ( (v3 & 1) != 0 )\n    operator delete(v7);\n  return isSpecialChestUnlocked;\n}", "assembly": "; \n; GameStatsManager::isPathChestUnlocked from 0x100078820 to 0x1000788a5 (133 bytes)\n; \n; 1 xrefs:\n; > GJPathsLayer::onPath @ 0x1002fea87\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\npush    rbp                                                            ; +0x0, 0x100078820\nmov     rbp, rsp                                                       ; +0x1, 0x100078821\npush    r15                                                            ; +0x4, 0x100078824\npush    r14                                                            ; +0x6, 0x100078826\npush    rbx                                                            ; +0x8, 0x100078828\nsub     rsp, 38h                                                       ; +0x9, 0x100078829\nmov     edx, esi                                                       ; +0xd, 0x10007882d\nmov     rbx, rdi                                                       ; +0xf, 0x10007882f\nlea     rdi, [rbp+var_48]                                              ; +0x12, 0x100078832\ncall    GameStatsManager__getPathRewardKey                             ; +0x16, 0x100078836\nmovzx   r15d, byte ptr [rbp+var_48]                                    ; +0x1b, 0x10007883b\ntest    r15b, 1                                                        ; +0x20, 0x100078840\njnz     short loc_100078858                                            ; +0x24, 0x100078844\nmov     rax, [rbp+var_38]                                              ; +0x26, 0x100078846\nmov     [rbp+__p], rax                                                 ; +0x2a, 0x10007884a\nmovups  xmm0, [rbp+var_48]                                             ; +0x2e, 0x10007884e\nmovaps  [rbp+var_30], xmm0                                             ; +0x32, 0x100078852\njmp     short loc_10007886C                                            ; +0x36, 0x100078856\nmov     rdx, qword ptr [rbp+var_48+8]                                  ; +0x38, 0x100078858\nmov     r14, [rbp+var_38]                                              ; +0x3c, 0x10007885c\nlea     rdi, [rbp+var_30]                                              ; +0x40, 0x100078860\nmov     rsi, r14                                                       ; +0x44, 0x100078864\ncall    sub_100006B70                                                  ; +0x47, 0x100078867\nlea     rsi, [rbp+var_30]                                              ; +0x4c, 0x10007886c\nmov     rdi, rbx                                                       ; +0x50, 0x100078870\ncall    GameStatsManager__isSpecialChestUnlocked                       ; +0x53, 0x100078873\nmov     ebx, eax                                                       ; +0x58, 0x100078878\ntest    byte ptr [rbp+var_30], 1                                       ; +0x5a, 0x10007887a\njz      short loc_100078889                                            ; +0x5e, 0x10007887e\nmov     rdi, [rbp+__p]; __p                                            ; +0x60, 0x100078880\ncall    __ZdlPv; operator delete(void *)                               ; +0x64, 0x100078884\ntest    r15b, 1                                                        ; +0x69, 0x100078889\njz      short loc_100078898                                            ; +0x6d, 0x10007888d\nmov     rdi, [rbp+var_38]; __p                                         ; +0x6f, 0x10007888f\ncall    __ZdlPv; operator delete(void *)                               ; +0x73, 0x100078893\nmov     eax, ebx                                                       ; +0x78, 0x100078898\nadd     rsp, 38h                                                       ; +0x7a, 0x10007889a\npop     rbx                                                            ; +0x7e, 0x10007889e\npop     r14                                                            ; +0x7f, 0x10007889f\npop     r15                                                            ; +0x81, 0x1000788a1\npop     rbp                                                            ; +0x83, 0x1000788a3\nretn                                                                   ; +0x84, 0x1000788a4", "xrefs": ["GJPathsLayer::onPath @ 0x1002fea87"], "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"}