{"type": "func", "start": 4295416016, "end": 4295416110, "name": "GameStatsManager::hasCompletedGauntletLevel", "pseudocode": "// \n// GameStatsManager::hasCompletedGauntletLevel from 0x10006d8d0 to 0x10006d92e (94 bytes)\n// \n// 2 xrefs:\n// > GauntletLayer::setupGauntlet @ 0x10039348e\n// > GJMapPack::completedMaps @ 0x10055fe02\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::hasCompletedGauntletLevel(GameStatsManager *a1, int a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCDictionary *m_completedLevels; // rbx\n  __int64 v4; // rbx\n  size_t v6[5]; // [rsp+8h] [rbp-28h] BYREF\n\n  m_completedLevels = a1->m_completedLevels;\n  GameStatsManager::getLevelKey(v6, v2, *(__int64 *)&a2, a2, 0, 0, 1, 0);\n  v4 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, v6);\n  if ( (v6[0] & 1) != 0 )\n    operator delete((void *)v6[2]);\n  return v4 != 0;\n}", "assembly": "; \n; GameStatsManager::hasCompletedGauntletLevel from 0x10006d8d0 to 0x10006d92e (94 bytes)\n; \n; 2 xrefs:\n; > GauntletLayer::setupGauntlet @ 0x10039348e\n; > GJMapPack::completedMaps @ 0x10055fe02\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, 0x10006d8d0\nmov     rbp, rsp                                                       ; +0x1, 0x10006d8d1\npush    r14                                                            ; +0x4, 0x10006d8d4\npush    rbx                                                            ; +0x6, 0x10006d8d6\nsub     rsp, 20h                                                       ; +0x7, 0x10006d8d7\nmov     edx, esi                                                       ; +0xb, 0x10006d8db\nmov     rbx, [rdi+260h]                                                ; +0xd, 0x10006d8dd\nmov     [rsp+30h+var_30], 0                                            ; +0x14, 0x10006d8e4\nlea     r14, [rbp+var_28]                                              ; +0x1b, 0x10006d8eb\nmov     rdi, r14                                                       ; +0x1f, 0x10006d8ef\nxor     ecx, ecx                                                       ; +0x22, 0x10006d8f2\nxor     r8d, r8d                                                       ; +0x24, 0x10006d8f4\nmov     r9d, 1                                                         ; +0x27, 0x10006d8f7\ncall    GameStatsManager__getLevelKey                                  ; +0x2d, 0x10006d8fd\nmov     rdi, rbx                                                       ; +0x32, 0x10006d902\nmov     rsi, r14                                                       ; +0x35, 0x10006d905\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x38, 0x10006d908\nmov     rbx, rax                                                       ; +0x3d, 0x10006d90d\ntest    [rbp+var_28], 1                                                ; +0x40, 0x10006d910\njz      short loc_10006D91F                                            ; +0x44, 0x10006d914\nmov     rdi, [rbp+__p]; __p                                            ; +0x46, 0x10006d916\ncall    __ZdlPv; operator delete(void *)                               ; +0x4a, 0x10006d91a\ntest    rbx, rbx                                                       ; +0x4f, 0x10006d91f\nsetnz   al                                                             ; +0x52, 0x10006d922\nadd     rsp, 20h                                                       ; +0x55, 0x10006d925\npop     rbx                                                            ; +0x59, 0x10006d929\npop     r14                                                            ; +0x5a, 0x10006d92a\npop     rbp                                                            ; +0x5c, 0x10006d92c\nretn                                                                   ; +0x5d, 0x10006d92d", "xrefs": ["GauntletLayer::setupGauntlet @ 0x10039348e", "GJMapPack::completedMaps @ 0x10055fe02"], "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"}