{"type": "func", "start": 4298326680, "end": 4298326788, "name": "GameStatsManager::storeEventChest", "pseudocode": "// \n// GameStatsManager::storeEventChest from 0x100334298 to 0x100334304 (108 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x100090508\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::storeEventChest(GameStatsManager *a1, int a2, GJRewardItem *a3)\n{\n  cocos2d::CCDictionary *m_eventChest; // x20\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  if ( a3 )\n  {\n    m_eventChest = a1->m_eventChest;\n    v5 = (cocos2d::CCString *)sub_100268F4C(\"d%i\", a2);\n    CString = (char *)cocos2d::CCString::getCString(v5);\n    sub_100009900(__p, CString);\n    cocos2d::CCDictionary::setObject_1(m_eventChest, a3, __p);\n    if ( v8 < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; GameStatsManager::storeEventChest from 0x100334298 to 0x100334304 (108 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x100090508\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, 0x100334298\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10033429c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003342a0\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003342a4\nCBZ             X2, loc_1003342F4                                      ; +0x10, 0x1003342a8\nMOV             X19, X2                                                ; +0x14, 0x1003342ac\nLDR             X20, [X0,#0x2E8]                                       ; +0x18, 0x1003342b0\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x1c, 0x1003342b4\nADRL            X0, aDI_1; \"d%i\"                                       ; +0x20, 0x1003342b8\nBL              sub_100268F4C                                          ; +0x28, 0x1003342c0\nBL              cocos2d__CCString__getCString                          ; +0x2c, 0x1003342c4\nMOV             X1, X0; __s                                            ; +0x30, 0x1003342c8\nADD             X0, SP, #0x30+__p; int                                 ; +0x34, 0x1003342cc\nBL              sub_100009900                                          ; +0x38, 0x1003342d0\nADD             X2, SP, #0x30+__p                                      ; +0x3c, 0x1003342d4\nMOV             X0, X20                                                ; +0x40, 0x1003342d8\nMOV             X1, X19                                                ; +0x44, 0x1003342dc\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x48, 0x1003342e0\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x4c, 0x1003342e4\nTBZ             W8, #0x1F, loc_1003342F4                               ; +0x50, 0x1003342e8\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x54, 0x1003342ec\nBL              __ZdlPv; operator delete(void *)                       ; +0x58, 0x1003342f0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x1003342f4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x1003342f8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x1003342fc\nRET                                                                    ; +0x68, 0x100334300", "xrefs": ["GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x100090508"], "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"}