{"type": "func", "start": 14398804, "end": 14399240, "name": "DS_Dictionary::setObjectForKey", "pseudocode": "// \n// DS_Dictionary::setObjectForKey from 0xdbb554 to 0xdbb708 (436 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::setArrayForKey @ 0xdbb514\n// > DS_Dictionary::setDictForKey @ 0xdbb7dc\n// > <???> @ 0x79060\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:08:44 +0000\n// \n\n__int64 __fastcall DS_Dictionary::setObjectForKey(DS_Dictionary *this, const char *a2, cocos2d::CCObject *lpsrc)\n{\n  char *CString; // x0\n  size_t v7; // x0\n  __int64 v8; // x4\n  __int64 v9; // x5\n  char *v11; // [xsp+48h] [xbp+48h]\n  __int64 v12; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v13; // [xsp+60h] [xbp+60h]\n  void *v14; // [xsp+68h] [xbp+68h]\n  _QWORD v15[2]; // [xsp+70h] [xbp+70h] BYREF\n  void *v16; // [xsp+80h] [xbp+80h]\n\n  if ( lpsrc )\n  {\n    if ( _dynamic_cast(\n           lpsrc,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,\n           0) )\n    {\n      CString = cocos2d::CCString::getCString(lpsrc);\n      v12 = 0;\n      v11 = CString;\n      v13 = 0;\n      v14 = nullptr;\n      v7 = strlen(CString);\n      std::string::__init(&v12, v11, v7);\n      v8 = v12;\n      v9 = v13;\n      v16 = v14;\n      v12 = 0;\n      v13 = 0;\n      v15[0] = v8;\n      v15[1] = v9;\n      v14 = nullptr;\n      DS_Dictionary::setStringForKey((__int64)this, a2, (__int64)v15);\n      if ( (v15[0] & 1) != 0 )\n        operator delete(v16);\n      if ( (v12 & 1) != 0 )\n        operator delete(v14);\n      return _stack_chk_guard;\n    }\n    if ( _dynamic_cast(\n           lpsrc,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary,\n           0) )\n    {\n      DS_Dictionary::setDictForKey(this, a2, lpsrc);\n      return _stack_chk_guard;\n    }\n    if ( _dynamic_cast(\n           lpsrc,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray,\n           0) )\n    {\n      DS_Dictionary::setArrayForKey(this, a2, lpsrc);\n      return _stack_chk_guard;\n    }\n  }\n  if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)lpsrc + 56LL))(lpsrc) )\n  {\n    DS_Dictionary::setSubDictForKey(this, a2, 0, 1u);\n    (*(void (__fastcall **)(cocos2d::CCObject *, DS_Dictionary *))(*(_QWORD *)lpsrc + 48LL))(lpsrc, this);\n    DS_Dictionary::stepOutOfSubDict((__int64)this);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; DS_Dictionary::setObjectForKey from 0xdbb554 to 0xdbb708 (436 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::setArrayForKey @ 0xdbb514\n; > DS_Dictionary::setDictForKey @ 0xdbb7dc\n; > <???> @ 0x79060\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:08:44 +0000\n; \nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0xdbb554\nMOV             X29, SP                                                ; +0x4, 0xdbb558\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x8, 0xdbb55c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xdbb560\nSTR             X23, [SP,#0x90+var_60]                                 ; +0x10, 0xdbb564\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x14, 0xdbb568\nMOV             X22, X0                                                ; +0x18, 0xdbb56c\nMOV             X19, X2                                                ; +0x1c, 0xdbb570\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xdbb574\nMOV             X23, X1                                                ; +0x24, 0xdbb578\nLDR             X0, [X0]                                               ; +0x28, 0xdbb57c\nSTR             X0, [X29,#0x90+var_8]                                  ; +0x2c, 0xdbb580\nCBZ             X2, loc_DBB6A0                                         ; +0x30, 0xdbb584\nADRP            X21, #_ZTIN7cocos2d8CCObjectE_ptr@PAGE                 ; +0x34, 0xdbb588\nMOV             X0, X2; lpsrc                                          ; +0x38, 0xdbb58c\nADRP            X2, #_ZTIN7cocos2d8CCStringE_ptr@PAGE                  ; +0x3c, 0xdbb590\nMOV             X3, #0; s2d                                            ; +0x40, 0xdbb594\nLDR             X21, [X21,#_ZTIN7cocos2d8CCObjectE_ptr@PAGEOFF]; `typeinfo for'cocos2d::CCObject ... ; +0x44, 0xdbb598\nLDR             X2, [X2,#_ZTIN7cocos2d8CCStringE_ptr@PAGEOFF]; lpdtype ; +0x48, 0xdbb59c\nMOV             X1, X21; lpstype                                       ; +0x4c, 0xdbb5a0\nBL              __dynamic_cast                                         ; +0x50, 0xdbb5a4\nCBZ             X0, loc_DBB640                                         ; +0x54, 0xdbb5a8\nMOV             X0, X19; this                                          ; +0x58, 0xdbb5ac\nADD             X19, X29, #0x90+var_38                                 ; +0x5c, 0xdbb5b0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x60, 0xdbb5b4\nSTR             XZR, [X29,#0x90+var_38]                                ; +0x64, 0xdbb5b8\nSTR             X0, [X29,#0x90+var_48]                                 ; +0x68, 0xdbb5bc\nSTR             XZR, [X29,#0x90+var_30]                                ; +0x6c, 0xdbb5c0\nSTR             XZR, [X29,#0x90+var_28]                                ; +0x70, 0xdbb5c4\nBL              .strlen                                                ; +0x74, 0xdbb5c8\nLDR             X1, [X29,#0x90+var_48]                                 ; +0x78, 0xdbb5cc\nMOV             X2, X0                                                 ; +0x7c, 0xdbb5d0\nMOV             X0, X19                                                ; +0x80, 0xdbb5d4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x84, 0xdbb5d8\nLDP             X4, X5, [X19]                                          ; +0x88, 0xdbb5dc\nLDR             X3, [X29,#0x90+var_28]                                 ; +0x8c, 0xdbb5e0\nMOV             X0, X22                                                ; +0x90, 0xdbb5e4\nMOV             X1, X23                                                ; +0x94, 0xdbb5e8\nADD             X2, X29, #0x90+var_20                                  ; +0x98, 0xdbb5ec\nSTR             X3, [X29,#0x90+var_10]                                 ; +0x9c, 0xdbb5f0\nSTR             XZR, [X29,#0x90+var_38]                                ; +0xa0, 0xdbb5f4\nSTR             XZR, [X29,#0x90+var_30]                                ; +0xa4, 0xdbb5f8\nSTP             X4, X5, [X29,#0x90+var_20]                             ; +0xa8, 0xdbb5fc\nSTR             XZR, [X29,#0x90+var_28]                                ; +0xac, 0xdbb600\nBL              _ZN13DS_Dictionary15setStringForKeyEPKcRKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE; DS_Dictionary::setStringForKey(char const*,std::string const&) ; +0xb0, 0xdbb604\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0xb4, 0xdbb608\nTBNZ            W0, #0, loc_DBB6F8                                     ; +0xb8, 0xdbb60c\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0xbc, 0xdbb610\nTBNZ            W0, #0, loc_DBB6EC                                     ; +0xc0, 0xdbb614\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc4, 0xdbb618\nLDR             X1, [X29,#0x90+var_8]                                  ; +0xc8, 0xdbb61c\nLDR             X0, [X20]                                              ; +0xcc, 0xdbb620\nCMP             X1, X0                                                 ; +0xd0, 0xdbb624\nB.NE            loc_DBB704                                             ; +0xd4, 0xdbb628\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0xd8, 0xdbb62c\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0xdc, 0xdbb630\nLDR             X23, [SP,#0x90+var_60]                                 ; +0xe0, 0xdbb634\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0xe4, 0xdbb638\nRET                                                                    ; +0xe8, 0xdbb63c\nADRP            X2, #_ZTIN7cocos2d12CCDictionaryE_ptr@PAGE             ; +0xec, 0xdbb640\nMOV             X0, X19; lpsrc                                         ; +0xf0, 0xdbb644\nMOV             X1, X21; lpstype                                       ; +0xf4, 0xdbb648\nMOV             X3, #0; s2d                                            ; +0xf8, 0xdbb64c\nLDR             X2, [X2,#_ZTIN7cocos2d12CCDictionaryE_ptr@PAGEOFF]; lpdtype ; +0xfc, 0xdbb650\nBL              __dynamic_cast                                         ; +0x100, 0xdbb654\nCBZ             X0, loc_DBB670                                         ; +0x104, 0xdbb658\nMOV             X0, X22; this                                          ; +0x108, 0xdbb65c\nMOV             X1, X23; char *                                        ; +0x10c, 0xdbb660\nMOV             X2, X19; cocos2d::CCDictionary *                       ; +0x110, 0xdbb664\nBL              _ZN13DS_Dictionary13setDictForKeyEPKcPN7cocos2d12CCDictionaryE; DS_Dictionary::setDictForKey(char const*,cocos2d::CCDictionary *) ; +0x114, 0xdbb668\nB               loc_DBB618                                             ; +0x118, 0xdbb66c\nADRP            X2, #_ZTIN7cocos2d7CCArrayE_ptr@PAGE                   ; +0x11c, 0xdbb670\nMOV             X0, X19; lpsrc                                         ; +0x120, 0xdbb674\nMOV             X1, X21; lpstype                                       ; +0x124, 0xdbb678\nMOV             X3, #0; s2d                                            ; +0x128, 0xdbb67c\nLDR             X2, [X2,#_ZTIN7cocos2d7CCArrayE_ptr@PAGEOFF]; lpdtype  ; +0x12c, 0xdbb680\nBL              __dynamic_cast                                         ; +0x130, 0xdbb684\nCBZ             X0, loc_DBB6A0                                         ; +0x134, 0xdbb688\nMOV             X0, X22; this                                          ; +0x138, 0xdbb68c\nMOV             X1, X23; char *                                        ; +0x13c, 0xdbb690\nMOV             X2, X19; cocos2d::CCArray *                            ; +0x140, 0xdbb694\nBL              _ZN13DS_Dictionary14setArrayForKeyEPKcPN7cocos2d7CCArrayE; DS_Dictionary::setArrayForKey(char const*,cocos2d::CCArray *) ; +0x144, 0xdbb698\nB               loc_DBB618                                             ; +0x148, 0xdbb69c\nLDR             X1, [X19]                                              ; +0x14c, 0xdbb6a0\nMOV             X0, X19                                                ; +0x150, 0xdbb6a4\nLDR             X1, [X1,#0x38]                                         ; +0x154, 0xdbb6a8\nBLR             X1                                                     ; +0x158, 0xdbb6ac\nUXTB            W0, W0                                                 ; +0x15c, 0xdbb6b0\nCBZ             W0, loc_DBB618                                         ; +0x160, 0xdbb6b4\nMOV             X0, X22; this                                          ; +0x164, 0xdbb6b8\nMOV             X1, X23; char *                                        ; +0x168, 0xdbb6bc\nMOV             W3, #1; bool                                           ; +0x16c, 0xdbb6c0\nMOV             W2, #0; bool                                           ; +0x170, 0xdbb6c4\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0x174, 0xdbb6c8\nLDR             X2, [X19]                                              ; +0x178, 0xdbb6cc\nMOV             X0, X19                                                ; +0x17c, 0xdbb6d0\nMOV             X1, X22                                                ; +0x180, 0xdbb6d4\nLDR             X2, [X2,#0x30]                                         ; +0x184, 0xdbb6d8\nBLR             X2                                                     ; +0x188, 0xdbb6dc\nMOV             X0, X22; this                                          ; +0x18c, 0xdbb6e0\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x190, 0xdbb6e4\nB               loc_DBB618                                             ; +0x194, 0xdbb6e8\nLDR             X0, [X29,#0x90+var_28]; void *                         ; +0x198, 0xdbb6ec\nBL              _ZdlPv; operator delete(void *)                        ; +0x19c, 0xdbb6f0\nB               loc_DBB618                                             ; +0x1a0, 0xdbb6f4\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1a4, 0xdbb6f8\nBL              _ZdlPv; operator delete(void *)                        ; +0x1a8, 0xdbb6fc\nB               loc_DBB610                                             ; +0x1ac, 0xdbb700\nBL              .__stack_chk_fail                                      ; +0x1b0, 0xdbb704", "xrefs": ["DS_Dictionary::setArrayForKey @ 0xdbb514", "DS_Dictionary::setDictForKey @ 0xdbb7dc", "<???> @ 0x79060"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}