{"type": "func", "start": 4295386064, "end": 4295386139, "name": "GameStatsManager::getStoreItem", "pseudocode": "// \n// GameStatsManager::getStoreItem from 0x1000663d0 to 0x10006641b (75 bytes)\n// \n// 1 xrefs:\n// > GJPathPage::onUnlock @ 0x100300daf\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\nGJStoreItem *__fastcall GameStatsManager::getStoreItem(GameStatsManager *a1, int a2, int a3)\n{\n  cocos2d::CCDictionary *m_allStoreItems; // rbx\n  GJStoreItem *result; // rax\n  GJStoreItem *v5; // rbx\n  _BYTE v6[16]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  m_allStoreItems = a1->m_allStoreItems;\n  GameStatsManager::getItemKey(v6, a2, (unsigned int)a2, (unsigned int)a3);\n  result = (GJStoreItem *)cocos2d::CCDictionary::objectForKey_1(m_allStoreItems, v6);\n  if ( (v6[0] & 1) != 0 )\n  {\n    v5 = result;\n    operator delete(__p);\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GameStatsManager::getStoreItem from 0x1000663d0 to 0x10006641b (75 bytes)\n; \n; 1 xrefs:\n; > GJPathPage::onUnlock @ 0x100300daf\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, 0x1000663d0\nmov     rbp, rsp                                                       ; +0x1, 0x1000663d1\npush    r14                                                            ; +0x4, 0x1000663d4\npush    rbx                                                            ; +0x6, 0x1000663d6\nsub     rsp, 20h                                                       ; +0x7, 0x1000663d7\nmov     ecx, edx                                                       ; +0xb, 0x1000663db\nmov     edx, esi                                                       ; +0xd, 0x1000663dd\nmov     rbx, [rdi+148h]                                                ; +0xf, 0x1000663df\nlea     r14, [rbp+var_28]                                              ; +0x16, 0x1000663e6\nmov     rdi, r14                                                       ; +0x1a, 0x1000663ea\ncall    GameStatsManager__getItemKey                                   ; +0x1d, 0x1000663ed\nmov     rdi, rbx                                                       ; +0x22, 0x1000663f2\nmov     rsi, r14                                                       ; +0x25, 0x1000663f5\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x28, 0x1000663f8\ntest    [rbp+var_28], 1                                                ; +0x2d, 0x1000663fd\njz      short loc_100066412                                            ; +0x31, 0x100066401\nmov     rdi, [rbp+__p]; __p                                            ; +0x33, 0x100066403\nmov     rbx, rax                                                       ; +0x37, 0x100066407\ncall    __ZdlPv; operator delete(void *)                               ; +0x3a, 0x10006640a\nmov     rax, rbx                                                       ; +0x3f, 0x10006640f\nadd     rsp, 20h                                                       ; +0x42, 0x100066412\npop     rbx                                                            ; +0x46, 0x100066416\npop     r14                                                            ; +0x47, 0x100066417\npop     rbp                                                            ; +0x49, 0x100066419\nretn                                                                   ; +0x4a, 0x10006641a", "xrefs": ["GJPathPage::onUnlock @ 0x100300daf"], "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"}