{"type": "func", "start": 4298291840, "end": 4298291920, "name": "GameStatsManager::getStoreItem", "pseudocode": "// \n// GameStatsManager::getStoreItem from 0x10032ba80 to 0x10032bad0 (80 bytes)\n// \n// 3 xrefs:\n// > GameStatsManager::generateItemUnlockableData @ 0x10032b8b4\n// > GameStatsManager::isItemUnlocked @ 0x10032fc60\n// > GJPathPage::onUnlock @ 0x1003ba290\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\n// local variable allocation has failed, the output may be wrong!\nGJStoreItem *__fastcall GameStatsManager::getStoreItem(GameStatsManager *a1, int a2, int a3)\n{\n  cocos2d::CCDictionary *m_allStoreItems; // x19\n  GJStoreItem *v4; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  m_allStoreItems = a1->m_allStoreItems;\n  GameStatsManager::getItemKey(__p, a1, *(_QWORD *)&a2, *(_QWORD *)&a3);\n  v4 = (GJStoreItem *)cocos2d::CCDictionary::objectForKey_1(m_allStoreItems, __p);\n  if ( v7 < 0 )\n    operator delete(__p[0]);\n  return v4;\n}", "assembly": "; \n; GameStatsManager::getStoreItem from 0x10032ba80 to 0x10032bad0 (80 bytes)\n; \n; 3 xrefs:\n; > GameStatsManager::generateItemUnlockableData @ 0x10032b8b4\n; > GameStatsManager::isItemUnlocked @ 0x10032fc60\n; > GJPathPage::onUnlock @ 0x1003ba290\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, 0x10032ba80\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10032ba84\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10032ba88\nADD             X29, SP, #0x30                                         ; +0xc, 0x10032ba8c\nLDR             X19, [X0,#0x148]                                       ; +0x10, 0x10032ba90\nADD             X8, SP, #0x30+__p                                      ; +0x14, 0x10032ba94\nBL              GameStatsManager__getItemKey                           ; +0x18, 0x10032ba98\nADD             X1, SP, #0x30+__p                                      ; +0x1c, 0x10032ba9c\nMOV             X0, X19                                                ; +0x20, 0x10032baa0\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x24, 0x10032baa4\nMOV             X19, X0                                                ; +0x28, 0x10032baa8\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x2c, 0x10032baac\nTBZ             W8, #0x1F, loc_10032BABC                               ; +0x30, 0x10032bab0\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x34, 0x10032bab4\nBL              __ZdlPv; operator delete(void *)                       ; +0x38, 0x10032bab8\nMOV             X0, X19                                                ; +0x3c, 0x10032babc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x40, 0x10032bac0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x44, 0x10032bac4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x48, 0x10032bac8\nRET                                                                    ; +0x4c, 0x10032bacc", "xrefs": ["GameStatsManager::generateItemUnlockableData @ 0x10032b8b4", "GameStatsManager::isItemUnlocked @ 0x10032fc60", "GJPathPage::onUnlock @ 0x1003ba290"], "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"}