{"type": "func", "start": 6442475280, "end": 6442475675, "name": "CCContentManager::addDictDS", "pseudocode": "// \n// CCContentManager::addDictDS from 0x180005f10 to 0x18000609b (395 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCLabelAtlas::initWithString @ 0x180047706\n// > cocos2d::CCParticleSystem::initWithFile @ 0x18006ab3b\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094741\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094922\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094e36\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b78a0\n// \n// This function is hookable on this platform (idp: pc, 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 11:21:18 +0000\n// \n\n// Alternative name is '?addDict@CCContentManager@@QEAAPEAVCCDictionary@cocos2d@@PEBD_N@Z'\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCDictionary *__fastcall CCContentManager::addDictDS(CCContentManager *this, char *a2)\n{\n  __int64 v4; // rbx\n  void *v5; // r8\n  DS_Dictionary *v7; // rax\n  DS_Dictionary *v8; // rbx\n  struct cocos2d::CCDictionary *DictForKey; // rdi\n  void *v10; // rcx\n  void *Block[3]; // [rsp+38h] [rbp-40h] BYREF\n  unsigned __int64 v12; // [rsp+50h] [rbp-28h]\n\n  sub_180005A10(Block, a2);\n  v4 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 7), Block);\n  if ( v12 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v12 + 1 >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v5);\n  }\n  if ( v4 )\n    return (struct cocos2d::CCDictionary *)v4;\n  v7 = (DS_Dictionary *)sub_1800E4AC0(0xF0u);\n  if ( v7 )\n    v8 = DS_Dictionary::DS_Dictionary(v7);\n  else\n    v8 = nullptr;\n  DS_Dictionary::loadRootSubDictFromFile(v8, a2);\n  DictForKey = DS_Dictionary::getDictForKey(v8, nullptr, 0);\n  if ( v8 )\n  {\n    DS_Dictionary::~DS_Dictionary(v8);\n    j_j_free_0(v8);\n  }\n  sub_180005A10(Block, a2);\n  cocos2d::CCDictionary::setObject(*((_QWORD *)this + 7), DictForKey, Block);\n  if ( v12 > 0xF )\n  {\n    v10 = Block[0];\n    if ( v12 + 1 >= 0x1000 )\n    {\n      v10 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v10);\n  }\n  return DictForKey;\n}", "assembly": "; \n; CCContentManager::addDictDS from 0x180005f10 to 0x18000609b (395 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCLabelAtlas::initWithString @ 0x180047706\n; > cocos2d::CCParticleSystem::initWithFile @ 0x18006ab3b\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094741\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094922\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094e36\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b78a0\n; \n; This function is hookable on this platform (idp: pc, 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 11:21:18 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180005f10\npush    rbp                                                            ; +0x5, 0x180005f15\npush    rsi                                                            ; +0x6, 0x180005f16\npush    rdi                                                            ; +0x7, 0x180005f17\nsub     rsp, 60h                                                       ; +0x8, 0x180005f18\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x180005f1c\nxor     rax, rsp                                                       ; +0x13, 0x180005f23\nmov     [rsp+78h+var_20], rax                                          ; +0x16, 0x180005f26\nmov     rsi, rdx                                                       ; +0x1b, 0x180005f2b\nmov     rbp, rcx                                                       ; +0x1e, 0x180005f2e\nlea     rcx, [rsp+78h+Block]; void *                                   ; +0x21, 0x180005f31\ncall    sub_180005A10                                                  ; +0x26, 0x180005f36\nnop                                                                    ; +0x2b, 0x180005f3b\nlea     rdx, [rsp+78h+Block]                                           ; +0x2c, 0x180005f3c\nmov     rcx, [rbp+38h]                                                 ; +0x31, 0x180005f41\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x35, 0x180005f45\nmov     rbx, rax                                                       ; +0x3a, 0x180005f4a\nmov     rdx, [rsp+78h+var_28]                                          ; +0x3d, 0x180005f4d\ncmp     rdx, 0Fh                                                       ; +0x42, 0x180005f52\njbe     short loc_180005FA3                                            ; +0x46, 0x180005f56\ninc     rdx                                                            ; +0x48, 0x180005f58\nmov     r8, [rsp+78h+Block]                                            ; +0x4b, 0x180005f5b\nmov     rcx, r8                                                        ; +0x50, 0x180005f60\ncmp     rdx, 1000h                                                     ; +0x53, 0x180005f63\njb      short loc_180005F9B                                            ; +0x5a, 0x180005f6a\nadd     rdx, 27h ; '''                                                 ; +0x5c, 0x180005f6c\nmov     r8, [r8-8]                                                     ; +0x60, 0x180005f70\nsub     rcx, r8                                                        ; +0x64, 0x180005f74\nsub     rcx, 8                                                         ; +0x67, 0x180005f77\ncmp     rcx, 1Fh                                                       ; +0x6b, 0x180005f7b\njbe     short loc_180005F9B                                            ; +0x6f, 0x180005f7f\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0x71, 0x180005f81\nxor     r9d, r9d; LineNo                                               ; +0x7a, 0x180005f8a\nxor     r8d, r8d; FileName                                             ; +0x7d, 0x180005f8d\nxor     edx, edx; FunctionName                                         ; +0x80, 0x180005f90\nxor     ecx, ecx; Expression                                           ; +0x82, 0x180005f92\ncall    cs:_invoke_watson                                              ; +0x84, 0x180005f94\ndb 0CCh                                                                ; +0x8a, 0x180005f9a\nmov     rcx, r8; Block                                                 ; +0x8b, 0x180005f9b\ncall    j_j_free_0                                                     ; +0x8e, 0x180005f9e\ntest    rbx, rbx                                                       ; +0x93, 0x180005fa3\njz      short loc_180005FB0                                            ; +0x96, 0x180005fa6\nmov     rax, rbx                                                       ; +0x98, 0x180005fa8\njmp     loc_18000607E                                                  ; +0x9b, 0x180005fab\nmov     ecx, 0F0h; Size                                                ; +0xa0, 0x180005fb0\ncall    sub_1800E4AC0                                                  ; +0xa5, 0x180005fb5\nmov     [rsp+78h+var_48], rax                                          ; +0xaa, 0x180005fba\ntest    rax, rax                                                       ; +0xaf, 0x180005fbf\njz      short loc_180005FD1                                            ; +0xb2, 0x180005fc2\nmov     rcx, rax; this                                                 ; +0xb4, 0x180005fc4\ncall    ??0DS_Dictionary@@QEAA@XZ; DS_Dictionary::DS_Dictionary(void)  ; +0xb7, 0x180005fc7\nmov     rbx, rax                                                       ; +0xbc, 0x180005fcc\njmp     short loc_180005FD3                                            ; +0xbf, 0x180005fcf\nxor     ebx, ebx                                                       ; +0xc1, 0x180005fd1\nmov     rdx, rsi; char *                                               ; +0xc3, 0x180005fd3\nmov     rcx, rbx; this                                                 ; +0xc6, 0x180005fd6\ncall    ?loadRootSubDictFromFile@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::loadRootSubDictFromFile(char const *) ; +0xc9, 0x180005fd9\nxor     r8d, r8d; bool                                                 ; +0xce, 0x180005fde\nxor     edx, edx; char *                                               ; +0xd1, 0x180005fe1\nmov     rcx, rbx; this                                                 ; +0xd3, 0x180005fe3\ncall    ?getDictForKey@DS_Dictionary@@QEAAPEAVCCDictionary@cocos2d@@PEBD_N@Z; DS_Dictionary::getDictForKey(char const *,bool) ; +0xd6, 0x180005fe6\nmov     rdi, rax                                                       ; +0xdb, 0x180005feb\ntest    rbx, rbx                                                       ; +0xde, 0x180005fee\njz      short loc_180006008                                            ; +0xe1, 0x180005ff1\nmov     rcx, rbx; this                                                 ; +0xe3, 0x180005ff3\ncall    ??1DS_Dictionary@@QEAA@XZ; DS_Dictionary::~DS_Dictionary(void) ; +0xe6, 0x180005ff6\nmov     edx, 0F0h                                                      ; +0xeb, 0x180005ffb\nmov     rcx, rbx; Block                                                ; +0xf0, 0x180006000\ncall    j_j_free_0                                                     ; +0xf3, 0x180006003\nmov     rdx, rsi; Str                                                  ; +0xf8, 0x180006008\nlea     rcx, [rsp+78h+Block]; void *                                   ; +0xfb, 0x18000600b\ncall    sub_180005A10                                                  ; +0x100, 0x180006010\nnop                                                                    ; +0x105, 0x180006015\nlea     r8, [rsp+78h+Block]                                            ; +0x106, 0x180006016\nmov     rdx, rdi                                                       ; +0x10b, 0x18000601b\nmov     rcx, [rbp+38h]                                                 ; +0x10e, 0x18000601e\ncall    ?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x112, 0x180006022\nnop                                                                    ; +0x117, 0x180006027\nmov     rdx, [rsp+78h+var_28]                                          ; +0x118, 0x180006028\ncmp     rdx, 0Fh                                                       ; +0x11d, 0x18000602d\njbe     short loc_18000607B                                            ; +0x121, 0x180006031\ninc     rdx                                                            ; +0x123, 0x180006033\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x126, 0x180006036\nmov     rax, rcx                                                       ; +0x12b, 0x18000603b\ncmp     rdx, 1000h                                                     ; +0x12e, 0x18000603e\njb      short loc_180006076                                            ; +0x135, 0x180006045\nadd     rdx, 27h ; '''                                                 ; +0x137, 0x180006047\nmov     rcx, [rcx-8]                                                   ; +0x13b, 0x18000604b\nsub     rax, rcx                                                       ; +0x13f, 0x18000604f\nsub     rax, 8                                                         ; +0x142, 0x180006052\ncmp     rax, 1Fh                                                       ; +0x146, 0x180006056\njbe     short loc_180006076                                            ; +0x14a, 0x18000605a\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0x14c, 0x18000605c\nxor     r9d, r9d; LineNo                                               ; +0x155, 0x180006065\nxor     r8d, r8d; FileName                                             ; +0x158, 0x180006068\nxor     edx, edx; FunctionName                                         ; +0x15b, 0x18000606b\nxor     ecx, ecx; Expression                                           ; +0x15d, 0x18000606d\ncall    cs:_invoke_watson                                              ; +0x15f, 0x18000606f\nalign 2                                                                ; +0x165, 0x180006075\ncall    j_j_free_0                                                     ; +0x166, 0x180006076\nmov     rax, rdi                                                       ; +0x16b, 0x18000607b\nmov     rcx, [rsp+78h+var_20]                                          ; +0x16e, 0x18000607e\nxor     rcx, rsp; StackCookie                                          ; +0x173, 0x180006083\ncall    __security_check_cookie                                        ; +0x176, 0x180006086\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x17b, 0x18000608b\nadd     rsp, 60h                                                       ; +0x183, 0x180006093\npop     rdi                                                            ; +0x187, 0x180006097\npop     rsi                                                            ; +0x188, 0x180006098\npop     rbp                                                            ; +0x189, 0x180006099\nretn                                                                   ; +0x18a, 0x18000609a", "xrefs": ["cocos2d::CCLabelAtlas::initWithString @ 0x180047706", "cocos2d::CCParticleSystem::initWithFile @ 0x18006ab3b", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094741", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094922", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094e36", "<???> @ 0x18014cf68", "<???> @ 0x1801b78a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}