{"type": "func", "start": 4298312852, "end": 4298312944, "name": "GameStatsManager::hasCompletedDemonLevel", "pseudocode": "// \n// GameStatsManager::hasCompletedDemonLevel from 0x100330c94 to 0x100330cf0 (92 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::completedDemonLevel @ 0x100330eac\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\nbool __fastcall GameStatsManager::hasCompletedDemonLevel(GameStatsManager *a1, GJGameLevel *a2)\n{\n  cocos2d::CCDictionary *m_completedLevels; // x19\n  char *DemonLevelKey; // x0\n  __int64 v4; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  m_completedLevels = a1->m_completedLevels;\n  DemonLevelKey = (char *)GameStatsManager::getDemonLevelKey(a1, a2);\n  sub_100009900(__p, DemonLevelKey);\n  v4 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, __p);\n  if ( v7 < 0 )\n    operator delete(__p[0]);\n  return v4 != 0;\n}", "assembly": "; \n; GameStatsManager::hasCompletedDemonLevel from 0x100330c94 to 0x100330cf0 (92 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::completedDemonLevel @ 0x100330eac\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, 0x100330c94\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100330c98\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100330c9c\nADD             X29, SP, #0x30                                         ; +0xc, 0x100330ca0\nLDR             X19, [X0,#0x260]                                       ; +0x10, 0x100330ca4\nBL              GameStatsManager__getDemonLevelKey                     ; +0x14, 0x100330ca8\nMOV             X1, X0; __s                                            ; +0x18, 0x100330cac\nADD             X0, SP, #0x30+__p; int                                 ; +0x1c, 0x100330cb0\nBL              sub_100009900                                          ; +0x20, 0x100330cb4\nADD             X1, SP, #0x30+__p                                      ; +0x24, 0x100330cb8\nMOV             X0, X19                                                ; +0x28, 0x100330cbc\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x2c, 0x100330cc0\nMOV             X19, X0                                                ; +0x30, 0x100330cc4\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x34, 0x100330cc8\nTBZ             W8, #0x1F, loc_100330CD8                               ; +0x38, 0x100330ccc\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x3c, 0x100330cd0\nBL              __ZdlPv; operator delete(void *)                       ; +0x40, 0x100330cd4\nCMP             X19, #0                                                ; +0x44, 0x100330cd8\nCSET            W0, NE                                                 ; +0x48, 0x100330cdc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x4c, 0x100330ce0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x50, 0x100330ce4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x54, 0x100330ce8\nRET                                                                    ; +0x58, 0x100330cec", "xrefs": ["GameStatsManager::completedDemonLevel @ 0x100330eac"], "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"}