{"type": "func", "start": 4298333176, "end": 4298333356, "name": "GameStatsManager::removeErrorFromSpecialChests", "pseudocode": "// \n// GameStatsManager::removeErrorFromSpecialChests from 0x100335bf8 to 0x100335cac (180 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::recountSpecialStats @ 0x100335214\n// > GameStatsManager::dataLoaded @ 0x10033fa2c\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\nvoid __fastcall GameStatsManager::removeErrorFromSpecialChests(GameStatsManager *a1)\n{\n  cocos2d::CCArray *v2; // x20\n  unsigned int v3; // w21\n  cocos2d::CCString *v4; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v7; // [xsp+1Fh] [xbp-21h]\n\n  GameStatsManager::processOnlineChests(a1);\n  v2 = cocos2d::CCDictionary::allKeys(a1->m_miscChests);\n  if ( (unsigned int)sub_10024A36C((__int64)v2) )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = cocos2d::CCArray::stringAtIndex(v2, v3);\n      CString = (char *)cocos2d::CCString::getCString(v4);\n      sub_100009900(__p, CString);\n      if ( !cocos2d::CCDictionary::objectForKey_1(a1->m_allSpecialChests, __p)\n        && !cocos2d::CCDictionary::objectForKey_1(a1->m_wraithChests, __p) )\n      {\n        cocos2d::CCDictionary::removeObjectForKey_1((int)a1->m_miscChests, (char *)__p);\n      }\n      if ( v7 < 0 )\n        operator delete(__p[0]);\n      ++v3;\n    }\n    while ( v3 < (unsigned int)sub_10024A36C((__int64)v2) );\n  }\n}", "assembly": "; \n; GameStatsManager::removeErrorFromSpecialChests from 0x100335bf8 to 0x100335cac (180 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::recountSpecialStats @ 0x100335214\n; > GameStatsManager::dataLoaded @ 0x10033fa2c\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, 0x100335bf8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100335bfc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100335c00\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100335c04\nADD             X29, SP, #0x40                                         ; +0x10, 0x100335c08\nMOV             X19, X0                                                ; +0x14, 0x100335c0c\nBL              GameStatsManager__processOnlineChests                  ; +0x18, 0x100335c10\nLDR             X0, [X19,#0x308]                                       ; +0x1c, 0x100335c14\nBL              cocos2d__CCDictionary__allKeys                         ; +0x20, 0x100335c18\nMOV             X20, X0                                                ; +0x24, 0x100335c1c\nBL              sub_10024A36C                                          ; +0x28, 0x100335c20\nCBZ             W0, loc_100335C98                                      ; +0x2c, 0x100335c24\nMOV             W21, #0                                                ; +0x30, 0x100335c28\nMOV             X0, X20                                                ; +0x34, 0x100335c2c\nMOV             X1, X21                                                ; +0x38, 0x100335c30\nBL              cocos2d__CCArray__stringAtIndex                        ; +0x3c, 0x100335c34\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x100335c38\nMOV             X1, X0; __s                                            ; +0x44, 0x100335c3c\nADD             X0, SP, #0x40+__p; int                                 ; +0x48, 0x100335c40\nBL              sub_100009900                                          ; +0x4c, 0x100335c44\nLDR             X0, [X19,#0x168]                                       ; +0x50, 0x100335c48\nADD             X1, SP, #0x40+__p                                      ; +0x54, 0x100335c4c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x58, 0x100335c50\nCBNZ            X0, loc_100335C74                                      ; +0x5c, 0x100335c54\nLDR             X0, [X19,#0x318]                                       ; +0x60, 0x100335c58\nADD             X1, SP, #0x40+__p                                      ; +0x64, 0x100335c5c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x68, 0x100335c60\nCBNZ            X0, loc_100335C74                                      ; +0x6c, 0x100335c64\nLDR             X0, [X19,#0x308]; int                                  ; +0x70, 0x100335c68\nADD             X1, SP, #0x40+__p; __s                                 ; +0x74, 0x100335c6c\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x78, 0x100335c70\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x7c, 0x100335c74\nTBZ             W8, #0x1F, loc_100335C84                               ; +0x80, 0x100335c78\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x84, 0x100335c7c\nBL              __ZdlPv; operator delete(void *)                       ; +0x88, 0x100335c80\nADD             W21, W21, #1                                           ; +0x8c, 0x100335c84\nMOV             X0, X20                                                ; +0x90, 0x100335c88\nBL              sub_10024A36C                                          ; +0x94, 0x100335c8c\nCMP             W21, W0                                                ; +0x98, 0x100335c90\nB.CC            loc_100335C2C                                          ; +0x9c, 0x100335c94\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa0, 0x100335c98\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa4, 0x100335c9c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xa8, 0x100335ca0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xac, 0x100335ca4\nRET                                                                    ; +0xb0, 0x100335ca8", "xrefs": ["GameStatsManager::recountSpecialStats @ 0x100335214", "GameStatsManager::dataLoaded @ 0x10033fa2c"], "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"}