{"type": "func", "start": 4295337104, "end": 4295337272, "name": "GameStatsManager::init", "pseudocode": "// \n// GameStatsManager::init from 0x10005a490 to 0x10005a538 (168 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::sharedState @ 0x10005a16a\n// > <???> @ 0x1008b3500\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::init(GameStatsManager *a1)\n{\n  cocos2d::CCString *v2; // rax\n  cocos2d::CCDictionary *v3; // rax\n  cocos2d::CCDictionary *v4; // rax\n  cocos2d::CCDictionary *m_rewardItems; // rdi\n  cocos2d::CCDictionary *v6; // r14\n  char v8; // [rsp+0h] [rbp-10h]\n\n  v2 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v8);\n  a1->m_trueString = v2;\n  cocos2d::CCObject::retain(v2);\n  v3 = cocos2d::CCDictionary::create();\n  a1->m_unkDict = v3;\n  cocos2d::CCObject::retain(v3);\n  v4 = cocos2d::CCDictionary::create();\n  m_rewardItems = a1->m_rewardItems;\n  if ( m_rewardItems != v4 )\n  {\n    v6 = v4;\n    if ( v4 )\n    {\n      cocos2d::CCObject::retain(v4);\n      m_rewardItems = a1->m_rewardItems;\n    }\n    if ( m_rewardItems )\n      cocos2d::CCObject::release(m_rewardItems);\n    a1->m_rewardItems = v6;\n  }\n  GameStatsManager::setupIconCredits(a1);\n  GameStatsManager::createStoreItems(a1);\n  GameStatsManager::createSecretChestItems(a1);\n  GameStatsManager::createSpecialChestItems(a1);\n  GameStatsManager::generateItemUnlockableData(a1);\n  return 1;\n}", "assembly": "; \n; GameStatsManager::init from 0x10005a490 to 0x10005a538 (168 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::sharedState @ 0x10005a16a\n; > <???> @ 0x1008b3500\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\npush    rbp                                                            ; +0x0, 0x10005a490\nmov     rbp, rsp                                                       ; +0x1, 0x10005a491\npush    r14                                                            ; +0x4, 0x10005a494\npush    rbx; char                                                      ; +0x6, 0x10005a496\nmov     rbx, rdi                                                       ; +0x7, 0x10005a497\nlea     rdi, aI; \"%i\"                                                  ; +0xa, 0x10005a49a\nmov     esi, 1                                                         ; +0x11, 0x10005a4a1\nxor     eax, eax                                                       ; +0x16, 0x10005a4a6\ncall    sub_1007AB580                                                  ; +0x18, 0x10005a4a8\nmov     [rbx+140h], rax                                                ; +0x1d, 0x10005a4ad\nmov     rdi, rax                                                       ; +0x24, 0x10005a4b4\ncall    cocos2d__CCObject__retain                                      ; +0x27, 0x10005a4b7\ncall    cocos2d__CCDictionary__create                                  ; +0x2c, 0x10005a4bc\nmov     [rbx+330h], rax                                                ; +0x31, 0x10005a4c1\nmov     rdi, rax                                                       ; +0x38, 0x10005a4c8\ncall    cocos2d__CCObject__retain                                      ; +0x3b, 0x10005a4cb\ncall    cocos2d__CCDictionary__create                                  ; +0x40, 0x10005a4d0\nmov     rdi, [rbx+1D8h]                                                ; +0x45, 0x10005a4d5\ncmp     rdi, rax                                                       ; +0x4c, 0x10005a4dc\njz      short loc_10005A509                                            ; +0x4f, 0x10005a4df\nmov     r14, rax                                                       ; +0x51, 0x10005a4e1\ntest    rax, rax                                                       ; +0x54, 0x10005a4e4\njz      short loc_10005A4F8                                            ; +0x57, 0x10005a4e7\nmov     rdi, r14                                                       ; +0x59, 0x10005a4e9\ncall    cocos2d__CCObject__retain                                      ; +0x5c, 0x10005a4ec\nmov     rdi, [rbx+1D8h]                                                ; +0x61, 0x10005a4f1\ntest    rdi, rdi                                                       ; +0x68, 0x10005a4f8\njz      short loc_10005A502                                            ; +0x6b, 0x10005a4fb\ncall    cocos2d__CCObject__release                                     ; +0x6d, 0x10005a4fd\nmov     [rbx+1D8h], r14                                                ; +0x72, 0x10005a502\nmov     rdi, rbx                                                       ; +0x79, 0x10005a509\ncall    GameStatsManager__setupIconCredits                             ; +0x7c, 0x10005a50c\nmov     rdi, rbx                                                       ; +0x81, 0x10005a511\ncall    GameStatsManager__createStoreItems                             ; +0x84, 0x10005a514\nmov     rdi, rbx                                                       ; +0x89, 0x10005a519\ncall    GameStatsManager__createSecretChestItems                       ; +0x8c, 0x10005a51c\nmov     rdi, rbx                                                       ; +0x91, 0x10005a521\ncall    GameStatsManager__createSpecialChestItems                      ; +0x94, 0x10005a524\nmov     rdi, rbx                                                       ; +0x99, 0x10005a529\ncall    GameStatsManager__generateItemUnlockableData                   ; +0x9c, 0x10005a52c\nmov     al, 1                                                          ; +0xa1, 0x10005a531\npop     rbx                                                            ; +0xa3, 0x10005a533\npop     r14                                                            ; +0xa4, 0x10005a534\npop     rbp                                                            ; +0xa6, 0x10005a536\nretn                                                                   ; +0xa7, 0x10005a537", "xrefs": ["GameStatsManager::sharedState @ 0x10005a16a", "<???> @ 0x1008b3500"], "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"}