{"type": "func", "start": 4298312724, "end": 4298312824, "name": "GameStatsManager::hasCompletedGauntletLevel", "pseudocode": "// \n// GameStatsManager::hasCompletedGauntletLevel from 0x100330c14 to 0x100330c78 (100 bytes)\n// \n// 2 xrefs:\n// > GJMapPack::completedMaps @ 0x1000afc60\n// > GauntletLayer::setupGauntlet @ 0x100232c2c\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  cocos2d::CCDictionary *m_completedLevels; // x19\n  __int64 v3; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  m_completedLevels = a1->m_completedLevels;\n  GameStatsManager::getLevelKey(*(__int64 *)&a2, 0, 0, 1, 0, __p);\n  v3 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, __p);\n  if ( v6 < 0 )\n    operator delete(__p[0]);\n  return v3 != 0;\n}", "assembly": "; \n; GameStatsManager::hasCompletedGauntletLevel from 0x100330c14 to 0x100330c78 (100 bytes)\n; \n; 2 xrefs:\n; > GJMapPack::completedMaps @ 0x1000afc60\n; > GauntletLayer::setupGauntlet @ 0x100232c2c\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, #0x40                                          ; +0x0, 0x100330c14\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100330c18\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100330c1c\nADD             X29, SP, #0x30                                         ; +0xc, 0x100330c20\nLDR             X19, [X0,#0x260]                                       ; +0x10, 0x100330c24\nADD             X8, SP, #0x30+__p                                      ; +0x14, 0x100330c28\nMOV             W2, #0                                                 ; +0x18, 0x100330c2c\nMOV             W3, #0                                                 ; +0x1c, 0x100330c30\nMOV             W4, #1                                                 ; +0x20, 0x100330c34\nMOV             W5, #0                                                 ; +0x24, 0x100330c38\nBL              GameStatsManager__getLevelKey                          ; +0x28, 0x100330c3c\nADD             X1, SP, #0x30+__p                                      ; +0x2c, 0x100330c40\nMOV             X0, X19                                                ; +0x30, 0x100330c44\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x34, 0x100330c48\nMOV             X19, X0                                                ; +0x38, 0x100330c4c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x3c, 0x100330c50\nTBZ             W8, #0x1F, loc_100330C60                               ; +0x40, 0x100330c54\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x44, 0x100330c58\nBL              __ZdlPv; operator delete(void *)                       ; +0x48, 0x100330c5c\nCMP             X19, #0                                                ; +0x4c, 0x100330c60\nCSET            W0, NE                                                 ; +0x50, 0x100330c64\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x54, 0x100330c68\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x58, 0x100330c6c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x5c, 0x100330c70\nRET                                                                    ; +0x60, 0x100330c74", "xrefs": ["GJMapPack::completedMaps @ 0x1000afc60", "GauntletLayer::setupGauntlet @ 0x100232c2c"], "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"}