{"type": "func", "start": 4298291948, "end": 4298292032, "name": "GameStatsManager::getSecretChestForItem", "pseudocode": "// \n// GameStatsManager::getSecretChestForItem from 0x10032baec to 0x10032bb40 (84 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::generateItemUnlockableData @ 0x10032b8f8\n// > GameStatsManager::isItemUnlocked @ 0x10032fc90\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!\nint __fastcall GameStatsManager::getSecretChestForItem(GameStatsManager *a1, int a2, UnlockType a3)\n{\n  cocos2d::CCDictionary *m_allTreasureRoomChestItems; // x19\n  cocos2d::CCString *v4; // x0\n  int v5; // w19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  m_allTreasureRoomChestItems = a1->m_allTreasureRoomChestItems;\n  GameStatsManager::getItemKey(__p, a1, *(_QWORD *)&a2, *(_QWORD *)&a3);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_allTreasureRoomChestItems, __p);\n  v5 = cocos2d::CCString::intValue(v4);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n  return v5;\n}", "assembly": "; \n; GameStatsManager::getSecretChestForItem from 0x10032baec to 0x10032bb40 (84 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::generateItemUnlockableData @ 0x10032b8f8\n; > GameStatsManager::isItemUnlocked @ 0x10032fc90\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, 0x10032baec\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10032baf0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10032baf4\nADD             X29, SP, #0x30                                         ; +0xc, 0x10032baf8\nLDR             X19, [X0,#0x160]                                       ; +0x10, 0x10032bafc\nADD             X8, SP, #0x30+__p                                      ; +0x14, 0x10032bb00\nBL              GameStatsManager__getItemKey                           ; +0x18, 0x10032bb04\nADD             X1, SP, #0x30+__p                                      ; +0x1c, 0x10032bb08\nMOV             X0, X19                                                ; +0x20, 0x10032bb0c\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0x24, 0x10032bb10\nBL              cocos2d__CCString__intValue                            ; +0x28, 0x10032bb14\nMOV             X19, X0                                                ; +0x2c, 0x10032bb18\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x30, 0x10032bb1c\nTBZ             W8, #0x1F, loc_10032BB2C                               ; +0x34, 0x10032bb20\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x38, 0x10032bb24\nBL              __ZdlPv; operator delete(void *)                       ; +0x3c, 0x10032bb28\nMOV             X0, X19                                                ; +0x40, 0x10032bb2c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x44, 0x10032bb30\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x48, 0x10032bb34\nADD             SP, SP, #0x40 ; '@'                                    ; +0x4c, 0x10032bb38\nRET                                                                    ; +0x50, 0x10032bb3c", "xrefs": ["GameStatsManager::generateItemUnlockableData @ 0x10032b8f8", "GameStatsManager::isItemUnlocked @ 0x10032fc90"], "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"}