{"type": "func", "start": 4295386288, "end": 4295386363, "name": "GameStatsManager::getSpecialChestKeyForItem", "pseudocode": "// \n// GameStatsManager::getSpecialChestKeyForItem from 0x1000664b0 to 0x1000664fb (75 bytes)\n// \n// 0 xrefs:\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\ncocos2d::CCString *__fastcall GameStatsManager::getSpecialChestKeyForItem(GameStatsManager *a1, int a2, UnlockType a3)\n{\n  cocos2d::CCDictionary *m_allSpecialChestItems; // rbx\n  cocos2d::CCString *result; // rax\n  cocos2d::CCString *v5; // rbx\n  _BYTE v6[16]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  m_allSpecialChestItems = a1->m_allSpecialChestItems;\n  GameStatsManager::getItemKey(v6, a2, (unsigned int)a2, (unsigned int)a3);\n  result = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(m_allSpecialChestItems, 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::getSpecialChestKeyForItem from 0x1000664b0 to 0x1000664fb (75 bytes)\n; \n; 0 xrefs:\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, 0x1000664b0\nmov     rbp, rsp                                                       ; +0x1, 0x1000664b1\npush    r14                                                            ; +0x4, 0x1000664b4\npush    rbx                                                            ; +0x6, 0x1000664b6\nsub     rsp, 20h                                                       ; +0x7, 0x1000664b7\nmov     ecx, edx                                                       ; +0xb, 0x1000664bb\nmov     edx, esi                                                       ; +0xd, 0x1000664bd\nmov     rbx, [rdi+170h]                                                ; +0xf, 0x1000664bf\nlea     r14, [rbp+var_28]                                              ; +0x16, 0x1000664c6\nmov     rdi, r14                                                       ; +0x1a, 0x1000664ca\ncall    GameStatsManager__getItemKey                                   ; +0x1d, 0x1000664cd\nmov     rdi, rbx                                                       ; +0x22, 0x1000664d2\nmov     rsi, r14                                                       ; +0x25, 0x1000664d5\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x28, 0x1000664d8\ntest    [rbp+var_28], 1                                                ; +0x2d, 0x1000664dd\njz      short loc_1000664F2                                            ; +0x31, 0x1000664e1\nmov     rdi, [rbp+__p]; __p                                            ; +0x33, 0x1000664e3\nmov     rbx, rax                                                       ; +0x37, 0x1000664e7\ncall    __ZdlPv; operator delete(void *)                               ; +0x3a, 0x1000664ea\nmov     rax, rbx                                                       ; +0x3f, 0x1000664ef\nadd     rsp, 20h                                                       ; +0x42, 0x1000664f2\npop     rbx                                                            ; +0x46, 0x1000664f6\npop     r14                                                            ; +0x47, 0x1000664f7\npop     rbp                                                            ; +0x49, 0x1000664f9\nretn                                                                   ; +0x4a, 0x1000664fa", "xrefs": [], "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"}