{"type": "func", "start": 4298370224, "end": 4298370884, "name": "GameStatsManager::encodeDataTo", "pseudocode": "// \n// GameStatsManager::encodeDataTo from 0x10033ecb0 to 0x10033ef44 (660 bytes)\n// \n// 1 xrefs:\n// > GameManager::encodeDataTo @ 0x10031ce24\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::encodeDataTo(GameStatsManager *a1, DS_Dictionary *a2)\n{\n  GameStatsManager::preSaveGameStats(a1);\n  DS_Dictionary::setDictForKey(a2, \"GS_value\", a1->m_playerStats);\n  DS_Dictionary::setDictForKey(a2, \"GS_completed\", a1->m_completedLevels);\n  DS_Dictionary::setDictForKey(a2, \"GS_3\", a1->m_verifiedUserCoins);\n  DS_Dictionary::setDictForKey(a2, \"GS_4\", a1->m_pendingUserCoins);\n  DS_Dictionary::setDictForKey(a2, \"GS_5\", a1->m_completedMappacks);\n  DS_Dictionary::setDictForKey(a2, \"GS_6\", a1->m_purchasedItems);\n  DS_Dictionary::setDictForKey(a2, \"GS_7\", a1->m_onlineCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_23\", a1->m_gauntletCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_8\", a1->m_unusedCurrencyAwardDict);\n  DS_Dictionary::setDictForKey(a2, \"GS_9\", a1->m_onlineStars);\n  DS_Dictionary::setDictForKey(a2, \"GS_10\", a1->m_mainCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_16\", a1->m_timelyCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_17\", a1->m_timelyStars);\n  DS_Dictionary::setDictForKey(a2, \"GS_18\", a1->m_gauntletDiamondScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_24\", a1->m_timelyDiamondScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_11\", a1->m_dailyChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_22\", a1->m_worldAdvertChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_25\", a1->m_weeklyChest);\n  DS_Dictionary::setDictForKey(a2, \"GS_31\", a1->m_eventChest);\n  DS_Dictionary::setDictForKey(a2, \"GS_12\", a1->m_activeChallenges);\n  DS_Dictionary::setDictForKey(a2, \"GS_15\", a1->m_upcomingChallenges);\n  DS_Dictionary::setDictForKey(a2, \"GS_14\", a1->m_challengeDiamonds);\n  DS_Dictionary::setDictForKey(a2, \"GS_27\", a1->m_completedLists);\n  DS_Dictionary::setDictForKey(a2, \"GS_19\", a1->m_treasureRoomChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_30\", a1->m_wraithChests);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GS_20\", a1->m_bonusKey.random - a1->m_bonusKey.seed);\n  DS_Dictionary::setDictForKey(a2, \"GS_21\", a1->m_miscChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_28\", a1->m_enabledItems);\n  DS_Dictionary::setDictForKey(a2, \"GS_32\", a1->m_unlockedGauntlets);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GS_26\", a1->m_activePath);\n  DS_Dictionary::setBoolForKey_1(a2, \"GS_29\", a1->m_pathBugFixed);\n}", "assembly": "; \n; GameStatsManager::encodeDataTo from 0x10033ecb0 to 0x10033ef44 (660 bytes)\n; \n; 1 xrefs:\n; > GameManager::encodeDataTo @ 0x10031ce24\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10033ecb0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10033ecb4\nADD             X29, SP, #0x10                                         ; +0x8, 0x10033ecb8\nMOV             X19, X1                                                ; +0xc, 0x10033ecbc\nMOV             X20, X0                                                ; +0x10, 0x10033ecc0\nBL              GameStatsManager__preSaveGameStats                     ; +0x14, 0x10033ecc4\nLDR             X2, [X20,#0x208]                                       ; +0x18, 0x10033ecc8\nADRL            X1, aGsValue; \"GS_value\"                               ; +0x1c, 0x10033eccc\nMOV             X0, X19                                                ; +0x24, 0x10033ecd4\nBL              DS_Dictionary__setDictForKey                           ; +0x28, 0x10033ecd8\nLDR             X2, [X20,#0x260]                                       ; +0x2c, 0x10033ecdc\nADRL            X1, aGsCompleted; \"GS_completed\"                       ; +0x30, 0x10033ece0\nMOV             X0, X19                                                ; +0x38, 0x10033ece8\nBL              DS_Dictionary__setDictForKey                           ; +0x3c, 0x10033ecec\nLDR             X2, [X20,#0x268]                                       ; +0x40, 0x10033ecf0\nADRL            X1, aGs3; \"GS_3\"                                       ; +0x44, 0x10033ecf4\nMOV             X0, X19                                                ; +0x4c, 0x10033ecfc\nBL              DS_Dictionary__setDictForKey                           ; +0x50, 0x10033ed00\nLDR             X2, [X20,#0x270]                                       ; +0x54, 0x10033ed04\nADRL            X1, aGs4; \"GS_4\"                                       ; +0x58, 0x10033ed08\nMOV             X0, X19                                                ; +0x60, 0x10033ed10\nBL              DS_Dictionary__setDictForKey                           ; +0x64, 0x10033ed14\nLDR             X2, [X20,#0x2D0]                                       ; +0x68, 0x10033ed18\nADRL            X1, aGs5; \"GS_5\"                                       ; +0x6c, 0x10033ed1c\nMOV             X0, X19                                                ; +0x74, 0x10033ed24\nBL              DS_Dictionary__setDictForKey                           ; +0x78, 0x10033ed28\nLDR             X2, [X20,#0x278]                                       ; +0x7c, 0x10033ed2c\nADRL            X1, aGs6; \"GS_6\"                                       ; +0x80, 0x10033ed30\nMOV             X0, X19                                                ; +0x88, 0x10033ed38\nBL              DS_Dictionary__setDictForKey                           ; +0x8c, 0x10033ed3c\nLDR             X2, [X20,#0x280]                                       ; +0x90, 0x10033ed40\nADRL            X1, aGs7; \"GS_7\"                                       ; +0x94, 0x10033ed44\nMOV             X0, X19                                                ; +0x9c, 0x10033ed4c\nBL              DS_Dictionary__setDictForKey                           ; +0xa0, 0x10033ed50\nLDR             X2, [X20,#0x290]                                       ; +0xa4, 0x10033ed54\nADRL            X1, aGs23; \"GS_23\"                                     ; +0xa8, 0x10033ed58\nMOV             X0, X19                                                ; +0xb0, 0x10033ed60\nBL              DS_Dictionary__setDictForKey                           ; +0xb4, 0x10033ed64\nLDR             X2, [X20,#0x2C0]                                       ; +0xb8, 0x10033ed68\nADRL            X1, aGs8; \"GS_8\"                                       ; +0xbc, 0x10033ed6c\nMOV             X0, X19                                                ; +0xc4, 0x10033ed74\nBL              DS_Dictionary__setDictForKey                           ; +0xc8, 0x10033ed78\nLDR             X2, [X20,#0x2A0]                                       ; +0xcc, 0x10033ed7c\nADRL            X1, aGs9; \"GS_9\"                                       ; +0xd0, 0x10033ed80\nMOV             X0, X19                                                ; +0xd8, 0x10033ed88\nBL              DS_Dictionary__setDictForKey                           ; +0xdc, 0x10033ed8c\nLDR             X2, [X20,#0x288]                                       ; +0xe0, 0x10033ed90\nADRL            X1, aGs10; \"GS_10\"                                     ; +0xe4, 0x10033ed94\nMOV             X0, X19                                                ; +0xec, 0x10033ed9c\nBL              DS_Dictionary__setDictForKey                           ; +0xf0, 0x10033eda0\nLDR             X2, [X20,#0x298]                                       ; +0xf4, 0x10033eda4\nADRL            X1, aGs16; \"GS_16\"                                     ; +0xf8, 0x10033eda8\nMOV             X0, X19                                                ; +0x100, 0x10033edb0\nBL              DS_Dictionary__setDictForKey                           ; +0x104, 0x10033edb4\nLDR             X2, [X20,#0x2A8]                                       ; +0x108, 0x10033edb8\nADRL            X1, aGs17; \"GS_17\"                                     ; +0x10c, 0x10033edbc\nMOV             X0, X19                                                ; +0x114, 0x10033edc4\nBL              DS_Dictionary__setDictForKey                           ; +0x118, 0x10033edc8\nLDR             X2, [X20,#0x2B0]                                       ; +0x11c, 0x10033edcc\nADRL            X1, aGs18; \"GS_18\"                                     ; +0x120, 0x10033edd0\nMOV             X0, X19                                                ; +0x128, 0x10033edd8\nBL              DS_Dictionary__setDictForKey                           ; +0x12c, 0x10033eddc\nLDR             X2, [X20,#0x2B8]                                       ; +0x130, 0x10033ede0\nADRL            X1, aGs24; \"GS_24\"                                     ; +0x134, 0x10033ede4\nMOV             X0, X19                                                ; +0x13c, 0x10033edec\nBL              DS_Dictionary__setDictForKey                           ; +0x140, 0x10033edf0\nLDR             X2, [X20,#0x1E0]                                       ; +0x144, 0x10033edf4\nADRL            X1, aGs11; \"GS_11\"                                     ; +0x148, 0x10033edf8\nMOV             X0, X19                                                ; +0x150, 0x10033ee00\nBL              DS_Dictionary__setDictForKey                           ; +0x154, 0x10033ee04\nLDR             X2, [X20,#0x1E8]                                       ; +0x158, 0x10033ee08\nADRL            X1, aGs22; \"GS_22\"                                     ; +0x15c, 0x10033ee0c\nMOV             X0, X19                                                ; +0x164, 0x10033ee14\nBL              DS_Dictionary__setDictForKey                           ; +0x168, 0x10033ee18\nLDR             X2, [X20,#0x2E0]                                       ; +0x16c, 0x10033ee1c\nADRL            X1, aGs25; \"GS_25\"                                     ; +0x170, 0x10033ee20\nMOV             X0, X19                                                ; +0x178, 0x10033ee28\nBL              DS_Dictionary__setDictForKey                           ; +0x17c, 0x10033ee2c\nLDR             X2, [X20,#0x2E8]                                       ; +0x180, 0x10033ee30\nADRL            X1, aGs31; \"GS_31\"                                     ; +0x184, 0x10033ee34\nMOV             X0, X19                                                ; +0x18c, 0x10033ee3c\nBL              DS_Dictionary__setDictForKey                           ; +0x190, 0x10033ee40\nLDR             X2, [X20,#0x1F0]                                       ; +0x194, 0x10033ee44\nADRL            X1, aGs12; \"GS_12\"                                     ; +0x198, 0x10033ee48\nMOV             X0, X19                                                ; +0x1a0, 0x10033ee50\nBL              DS_Dictionary__setDictForKey                           ; +0x1a4, 0x10033ee54\nLDR             X2, [X20,#0x1F8]                                       ; +0x1a8, 0x10033ee58\nADRL            X1, aGs15; \"GS_15\"                                     ; +0x1ac, 0x10033ee5c\nMOV             X0, X19                                                ; +0x1b4, 0x10033ee64\nBL              DS_Dictionary__setDictForKey                           ; +0x1b8, 0x10033ee68\nLDR             X2, [X20,#0x2C8]                                       ; +0x1bc, 0x10033ee6c\nADRL            X1, aGs14; \"GS_14\"                                     ; +0x1c0, 0x10033ee70\nMOV             X0, X19                                                ; +0x1c8, 0x10033ee78\nBL              DS_Dictionary__setDictForKey                           ; +0x1cc, 0x10033ee7c\nLDR             X2, [X20,#0x2D8]                                       ; +0x1d0, 0x10033ee80\nADRL            X1, aGs27; \"GS_27\"                                     ; +0x1d4, 0x10033ee84\nMOV             X0, X19                                                ; +0x1dc, 0x10033ee8c\nBL              DS_Dictionary__setDictForKey                           ; +0x1e0, 0x10033ee90\nLDR             X2, [X20,#0x2F0]                                       ; +0x1e4, 0x10033ee94\nADRL            X1, aGs19; \"GS_19\"                                     ; +0x1e8, 0x10033ee98\nMOV             X0, X19                                                ; +0x1f0, 0x10033eea0\nBL              DS_Dictionary__setDictForKey                           ; +0x1f4, 0x10033eea4\nLDR             X2, [X20,#0x318]                                       ; +0x1f8, 0x10033eea8\nADRL            X1, aGs30; \"GS_30\"                                     ; +0x1fc, 0x10033eeac\nMOV             X0, X19                                                ; +0x204, 0x10033eeb4\nBL              DS_Dictionary__setDictForKey                           ; +0x208, 0x10033eeb8\nLDR             W8, [X20,#0x2F8]                                       ; +0x20c, 0x10033eebc\nLDR             W9, [X20,#0x2FC]                                       ; +0x210, 0x10033eec0\nSUB             W2, W8, W9                                             ; +0x214, 0x10033eec4\nADRL            X1, aGs20; \"GS_20\"                                     ; +0x218, 0x10033eec8\nMOV             X0, X19                                                ; +0x220, 0x10033eed0\nBL              DS_Dictionary__setIntegerForKey_1                      ; +0x224, 0x10033eed4\nLDR             X2, [X20,#0x308]                                       ; +0x228, 0x10033eed8\nADRL            X1, aGs21; \"GS_21\"                                     ; +0x22c, 0x10033eedc\nMOV             X0, X19                                                ; +0x234, 0x10033eee4\nBL              DS_Dictionary__setDictForKey                           ; +0x238, 0x10033eee8\nLDR             X2, [X20,#0x310]                                       ; +0x23c, 0x10033eeec\nADRL            X1, aGs28; \"GS_28\"                                     ; +0x240, 0x10033eef0\nMOV             X0, X19                                                ; +0x248, 0x10033eef8\nBL              DS_Dictionary__setDictForKey                           ; +0x24c, 0x10033eefc\nLDR             X2, [X20,#0x328]                                       ; +0x250, 0x10033ef00\nADRL            X1, aGs32; \"GS_32\"                                     ; +0x254, 0x10033ef04\nMOV             X0, X19                                                ; +0x25c, 0x10033ef0c\nBL              DS_Dictionary__setDictForKey                           ; +0x260, 0x10033ef10\nLDR             W2, [X20,#0x38C]                                       ; +0x264, 0x10033ef14\nADRL            X1, aGs26; \"GS_26\"                                     ; +0x268, 0x10033ef18\nMOV             X0, X19                                                ; +0x270, 0x10033ef20\nBL              DS_Dictionary__setIntegerForKey_1                      ; +0x274, 0x10033ef24\nLDRB            W2, [X20,#0x388]                                       ; +0x278, 0x10033ef28\nADRL            X1, aGs29; \"GS_29\"                                     ; +0x27c, 0x10033ef2c\nMOV             X0, X19                                                ; +0x284, 0x10033ef34\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x288, 0x10033ef38\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x28c, 0x10033ef3c\nB               DS_Dictionary__setBoolForKey_1                         ; +0x290, 0x10033ef40", "xrefs": ["GameManager::encodeDataTo @ 0x10031ce24"], "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"}