{"type": "func", "start": 4295096112, "end": 4295096280, "name": "GameStatsManager::init", "pseudocode": "// \n// GameStatsManager::init from 0x10001f730 to 0x10001f7d8 (168 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::sharedState @ 0x10001f407\n// > <???> @ 0x100ab6af0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:18:58 +0000\n// \n\nchar __fastcall GameStatsManager::init(_QWORD *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdi\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rdi\n  __int64 v8; // r14\n  char v10; // [rsp+0h] [rbp-10h]\n\n  v2 = sub_10088E820(\"%i\", v10);\n  a1[40] = v2;\n  v3 = v2;\n  cocos2d::CCObject::retain(v2);\n  v4 = cocos2d::CCDictionary::create(v3, 1);\n  a1[103] = v4;\n  v5 = v4;\n  cocos2d::CCObject::retain(v4);\n  v6 = cocos2d::CCDictionary::create(v5, 1);\n  v7 = a1[59];\n  if ( v7 != v6 )\n  {\n    v8 = v6;\n    if ( v6 )\n    {\n      cocos2d::CCObject::retain(v6);\n      v7 = a1[59];\n    }\n    if ( v7 )\n      cocos2d::CCObject::release(v7);\n    a1[59] = v8;\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 0x10001f730 to 0x10001f7d8 (168 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::sharedState @ 0x10001f407\n; > <???> @ 0x100ab6af0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:18:58 +0000\n; \npush    rbp                                                            ; +0x0, 0x10001f730\nmov     rbp, rsp                                                       ; +0x1, 0x10001f731\npush    r14                                                            ; +0x4, 0x10001f734\npush    rbx; char                                                      ; +0x6, 0x10001f736\nmov     rbx, rdi                                                       ; +0x7, 0x10001f737\nlea     rdi, aI_14; \"%i\"                                               ; +0xa, 0x10001f73a\nmov     esi, 1                                                         ; +0x11, 0x10001f741\nxor     eax, eax                                                       ; +0x16, 0x10001f746\ncall    sub_10088E820                                                  ; +0x18, 0x10001f748\nmov     [rbx+140h], rax                                                ; +0x1d, 0x10001f74d\nmov     rdi, rax                                                       ; +0x24, 0x10001f754\ncall    cocos2d__CCObject__retain                                      ; +0x27, 0x10001f757\ncall    cocos2d__CCDictionary__create                                  ; +0x2c, 0x10001f75c\nmov     [rbx+338h], rax                                                ; +0x31, 0x10001f761\nmov     rdi, rax                                                       ; +0x38, 0x10001f768\ncall    cocos2d__CCObject__retain                                      ; +0x3b, 0x10001f76b\ncall    cocos2d__CCDictionary__create                                  ; +0x40, 0x10001f770\nmov     rdi, [rbx+1D8h]                                                ; +0x45, 0x10001f775\ncmp     rdi, rax                                                       ; +0x4c, 0x10001f77c\njz      short loc_10001F7A9                                            ; +0x4f, 0x10001f77f\nmov     r14, rax                                                       ; +0x51, 0x10001f781\ntest    rax, rax                                                       ; +0x54, 0x10001f784\njz      short loc_10001F798                                            ; +0x57, 0x10001f787\nmov     rdi, r14                                                       ; +0x59, 0x10001f789\ncall    cocos2d__CCObject__retain                                      ; +0x5c, 0x10001f78c\nmov     rdi, [rbx+1D8h]                                                ; +0x61, 0x10001f791\ntest    rdi, rdi                                                       ; +0x68, 0x10001f798\njz      short loc_10001F7A2                                            ; +0x6b, 0x10001f79b\ncall    cocos2d__CCObject__release                                     ; +0x6d, 0x10001f79d\nmov     [rbx+1D8h], r14                                                ; +0x72, 0x10001f7a2\nmov     rdi, rbx                                                       ; +0x79, 0x10001f7a9\ncall    GameStatsManager__setupIconCredits                             ; +0x7c, 0x10001f7ac\nmov     rdi, rbx                                                       ; +0x81, 0x10001f7b1\ncall    GameStatsManager__createStoreItems                             ; +0x84, 0x10001f7b4\nmov     rdi, rbx                                                       ; +0x89, 0x10001f7b9\ncall    GameStatsManager__createSecretChestItems                       ; +0x8c, 0x10001f7bc\nmov     rdi, rbx                                                       ; +0x91, 0x10001f7c1\ncall    GameStatsManager__createSpecialChestItems                      ; +0x94, 0x10001f7c4\nmov     rdi, rbx                                                       ; +0x99, 0x10001f7c9\ncall    GameStatsManager__generateItemUnlockableData                   ; +0x9c, 0x10001f7cc\nmov     al, 1                                                          ; +0xa1, 0x10001f7d1\npop     rbx                                                            ; +0xa3, 0x10001f7d3\npop     r14                                                            ; +0xa4, 0x10001f7d4\npop     rbp                                                            ; +0xa6, 0x10001f7d6\nretn                                                                   ; +0xa7, 0x10001f7d7", "xrefs": ["GameStatsManager::sharedState @ 0x10001f407", "<???> @ 0x100ab6af0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}