{"type": "func", "start": 4298292060, "end": 4298292140, "name": "GameStatsManager::getSpecialChestKeyForItem", "pseudocode": "// \n// GameStatsManager::getSpecialChestKeyForItem from 0x10032bb5c to 0x10032bbac (80 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::generateItemUnlockableData @ 0x10032b92c\n// > GameStatsManager::isItemUnlocked @ 0x10032fcc4\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!\ncocos2d::CCString *__fastcall GameStatsManager::getSpecialChestKeyForItem(GameStatsManager *a1, int a2, UnlockType a3)\n{\n  cocos2d::CCDictionary *m_allSpecialChestItems; // x19\n  cocos2d::CCString *v4; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  m_allSpecialChestItems = a1->m_allSpecialChestItems;\n  GameStatsManager::getItemKey(__p, a1, *(_QWORD *)&a2, *(_QWORD *)&a3);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(m_allSpecialChestItems, __p);\n  if ( v7 < 0 )\n    operator delete(__p[0]);\n  return v4;\n}", "assembly": "; \n; GameStatsManager::getSpecialChestKeyForItem from 0x10032bb5c to 0x10032bbac (80 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::generateItemUnlockableData @ 0x10032b92c\n; > GameStatsManager::isItemUnlocked @ 0x10032fcc4\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, 0x10032bb5c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10032bb60\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10032bb64\nADD             X29, SP, #0x30                                         ; +0xc, 0x10032bb68\nLDR             X19, [X0,#0x170]                                       ; +0x10, 0x10032bb6c\nADD             X8, SP, #0x30+__p                                      ; +0x14, 0x10032bb70\nBL              GameStatsManager__getItemKey                           ; +0x18, 0x10032bb74\nADD             X1, SP, #0x30+__p                                      ; +0x1c, 0x10032bb78\nMOV             X0, X19                                                ; +0x20, 0x10032bb7c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x24, 0x10032bb80\nMOV             X19, X0                                                ; +0x28, 0x10032bb84\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x2c, 0x10032bb88\nTBZ             W8, #0x1F, loc_10032BB98                               ; +0x30, 0x10032bb8c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x34, 0x10032bb90\nBL              __ZdlPv; operator delete(void *)                       ; +0x38, 0x10032bb94\nMOV             X0, X19                                                ; +0x3c, 0x10032bb98\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x40, 0x10032bb9c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x44, 0x10032bba0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x48, 0x10032bba4\nRET                                                                    ; +0x4c, 0x10032bba8", "xrefs": ["GameStatsManager::generateItemUnlockableData @ 0x10032b92c", "GameStatsManager::isItemUnlocked @ 0x10032fcc4"], "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"}