{"type": "func", "start": 4298374232, "end": 4298374452, "name": "GameStatsManager::processOnlineChests", "pseudocode": "// \n// GameStatsManager::processOnlineChests from 0x10033fc58 to 0x10033fd34 (220 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::removeErrorFromSpecialChests @ 0x100335c10\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::processOnlineChests(GameStatsManager *a1)\n{\n  cocos2d::CCArray *v2; // x20\n  unsigned int v3; // w21\n  cocos2d::CCString *v4; // x0\n  char *CString; // x0\n  __int64 v6; // x22\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  __int64 v8; // [xsp+10h] [xbp-40h]\n  void *v9[2]; // [xsp+18h] [xbp-38h] BYREF\n  __int64 v10; // [xsp+28h] [xbp-28h]\n\n  v2 = cocos2d::CCDictionary::allKeys(a1->m_wraithChests);\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(v9, CString);\n      v6 = cocos2d::CCDictionary::objectForKey_1(a1->m_miscChests, v9);\n      if ( SHIBYTE(v10) < 0 )\n      {\n        sub_1000097D0(__p, v9[0], (unsigned __int64)v9[1]);\n      }\n      else\n      {\n        *(_OWORD *)__p = *(_OWORD *)v9;\n        v8 = v10;\n      }\n      GameStatsManager::linkSpecialChestUnlocks((__int64)a1, v6, (__int128 *)__p);\n      if ( SHIBYTE(v8) < 0 )\n        operator delete(__p[0]);\n      if ( SHIBYTE(v10) < 0 )\n        operator delete(v9[0]);\n      ++v3;\n    }\n    while ( v3 < (unsigned int)sub_10024A36C((__int64)v2) );\n  }\n}", "assembly": "; \n; GameStatsManager::processOnlineChests from 0x10033fc58 to 0x10033fd34 (220 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::removeErrorFromSpecialChests @ 0x100335c10\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, #0x60                                          ; +0x0, 0x10033fc58\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x10033fc5c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x10033fc60\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x10033fc64\nADD             X29, SP, #0x50                                         ; +0x10, 0x10033fc68\nMOV             X19, X0                                                ; +0x14, 0x10033fc6c\nLDR             X0, [X0,#0x318]                                        ; +0x18, 0x10033fc70\nBL              cocos2d__CCDictionary__allKeys                         ; +0x1c, 0x10033fc74\nMOV             X20, X0                                                ; +0x20, 0x10033fc78\nBL              sub_10024A36C                                          ; +0x24, 0x10033fc7c\nCBZ             W0, loc_10033FD20                                      ; +0x28, 0x10033fc80\nMOV             W21, #0                                                ; +0x2c, 0x10033fc84\nMOV             X0, X20                                                ; +0x30, 0x10033fc88\nMOV             X1, X21                                                ; +0x34, 0x10033fc8c\nBL              cocos2d__CCArray__stringAtIndex                        ; +0x38, 0x10033fc90\nBL              cocos2d__CCString__getCString                          ; +0x3c, 0x10033fc94\nMOV             X1, X0; __s                                            ; +0x40, 0x10033fc98\nADD             X0, SP, #0x50+var_38; int                              ; +0x44, 0x10033fc9c\nBL              sub_100009900                                          ; +0x48, 0x10033fca0\nLDR             X0, [X19,#0x308]                                       ; +0x4c, 0x10033fca4\nADD             X1, SP, #0x50+var_38                                   ; +0x50, 0x10033fca8\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x54, 0x10033fcac\nMOV             X22, X0                                                ; +0x58, 0x10033fcb0\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x5c, 0x10033fcb4\nTBNZ            W8, #0x1F, loc_10033FCD0                               ; +0x60, 0x10033fcb8\nLDUR            Q0, [SP,#0x50+var_38]                                  ; +0x64, 0x10033fcbc\nSTR             Q0, [SP,#0x50+__p]                                     ; +0x68, 0x10033fcc0\nLDR             X8, [SP,#0x28]                                         ; +0x6c, 0x10033fcc4\nSTR             X8, [SP,#0x50+var_40]                                  ; +0x70, 0x10033fcc8\nB               loc_10033FCDC                                          ; +0x74, 0x10033fccc\nLDP             X1, X2, [SP,#0x50+var_38]; __src                       ; +0x78, 0x10033fcd0\nMOV             X0, SP; __dst                                          ; +0x7c, 0x10033fcd4\nBL              sub_1000097D0                                          ; +0x80, 0x10033fcd8\nMOV             X2, SP                                                 ; +0x84, 0x10033fcdc\nMOV             X0, X19                                                ; +0x88, 0x10033fce0\nMOV             X1, X22                                                ; +0x8c, 0x10033fce4\nBL              GameStatsManager__linkSpecialChestUnlocks              ; +0x90, 0x10033fce8\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0x94, 0x10033fcec\nTBZ             W8, #0x1F, loc_10033FCFC                               ; +0x98, 0x10033fcf0\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x9c, 0x10033fcf4\nBL              __ZdlPv; operator delete(void *)                       ; +0xa0, 0x10033fcf8\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0xa4, 0x10033fcfc\nTBZ             W8, #0x1F, loc_10033FD0C                               ; +0xa8, 0x10033fd00\nLDR             X0, [SP,#0x50+var_38]; __p                             ; +0xac, 0x10033fd04\nBL              __ZdlPv; operator delete(void *)                       ; +0xb0, 0x10033fd08\nADD             W21, W21, #1                                           ; +0xb4, 0x10033fd0c\nMOV             X0, X20                                                ; +0xb8, 0x10033fd10\nBL              sub_10024A36C                                          ; +0xbc, 0x10033fd14\nCMP             W21, W0                                                ; +0xc0, 0x10033fd18\nB.CC            loc_10033FC88                                          ; +0xc4, 0x10033fd1c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc8, 0x10033fd20\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xcc, 0x10033fd24\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xd0, 0x10033fd28\nADD             SP, SP, #0x60 ; '`'                                    ; +0xd4, 0x10033fd2c\nRET                                                                    ; +0xd8, 0x10033fd30", "xrefs": ["GameStatsManager::removeErrorFromSpecialChests @ 0x100335c10"], "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"}