{"type": "func", "start": 6276008, "end": 6276164, "name": "CCContentManager::addDict", "pseudocode": "// \n// CCContentManager::addDict from 0x5fc3a8 to 0x5fc444 (156 bytes)\n// \n// 7 xrefs:\n// > LoadingLayer::loadAssets @ 0x30b9cc\n// > LoadingLayer::loadAssets @ 0x30b9da\n// > LoadingLayer::loadAssets @ 0x30b9e8\n// > cocos2d::CCLabelAtlas::initWithString @ 0x5cb32e\n// > cocos2d::CCParticleSystem::initWithFile @ 0x5dce32\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9584\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9a3e\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::CCDictionary *CCContentManager::addDict(CCContentManager *a1, const char *a2, bool a3)\n{\n  CCContentManager_vtbl *v3; // r4\n  cocos2d::CCDictionary *DictForKey; // r4\n  DS_Dictionary *v7; // r7\n  pugi::xml_node *m_start; // r0\n  CCContentManager_vtbl *v9; // r7\n  _BOOL4 v11; // [sp+8h] [bp-8h] BYREF\n\n  v11 = a3;\n  v3 = a1[1].__vftable;\n  sub_776584((int)&v11, (char *)a2);\n  DictForKey = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((int)v3, (const char **)&v11);\n  sub_774008(&v11);\n  if ( !DictForKey )\n  {\n    v7 = (DS_Dictionary *)operator new(0xD8u);\n    DS_Dictionary::DS_Dictionary(v7);\n    DS_Dictionary::loadRootSubDictFromFile(v7, a2);\n    DictForKey = DS_Dictionary::getDictForKey(v7, nullptr, 0);\n    m_start = v7->dictTree.m_start;\n    if ( m_start )\n      operator delete(m_start);\n    pugi::xml_document::~xml_document(&v7->doc);\n    operator delete(v7);\n    v9 = a1[1].__vftable;\n    sub_776584((int)&v11, (char *)a2);\n    cocos2d::CCDictionary::setObject((int)v9, DictForKey, (const char **)&v11);\n    sub_774008(&v11);\n  }\n  return DictForKey;\n}", "assembly": "; \n; CCContentManager::addDict from 0x5fc3a8 to 0x5fc444 (156 bytes)\n; \n; 7 xrefs:\n; > LoadingLayer::loadAssets @ 0x30b9cc\n; > LoadingLayer::loadAssets @ 0x30b9da\n; > LoadingLayer::loadAssets @ 0x30b9e8\n; > cocos2d::CCLabelAtlas::initWithString @ 0x5cb32e\n; > cocos2d::CCParticleSystem::initWithFile @ 0x5dce32\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9584\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9a3e\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.W          {R0-R10,LR}                                            ; +0x0, 0x5fc3a8\nADD             R6, SP, #0x10+var_8                                    ; +0x4, 0x5fc3ac\nLDR             R5, =(__stack_chk_guard_ptr - 0x5FC3BC)                ; +0x6, 0x5fc3ae\nADD.W           R8, SP, #0x10+var_C                                    ; +0x8, 0x5fc3b0\nLDR             R4, [R0,#0x34]                                         ; +0xc, 0x5fc3b4\nMOV             R10, R0                                                ; +0xe, 0x5fc3b6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5fc3b8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x5fc3ba\nMOV             R2, R8                                                 ; +0x14, 0x5fc3bc\nMOV             R0, R6; int                                            ; +0x16, 0x5fc3be\nMOV             R9, R1                                                 ; +0x18, 0x5fc3c0\nLDR             R3, [R5]                                               ; +0x1a, 0x5fc3c2\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1c, 0x5fc3c4\nBL              sub_776584                                             ; +0x1e, 0x5fc3c6\nMOV             R0, R4                                                 ; +0x22, 0x5fc3ca\nMOV             R1, R6                                                 ; +0x24, 0x5fc3cc\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x26, 0x5fc3ce\nMOV             R4, R0                                                 ; +0x2a, 0x5fc3d2\nMOV             R0, R6                                                 ; +0x2c, 0x5fc3d4\nBL              sub_774008                                             ; +0x2e, 0x5fc3d6\nCBNZ            R4, loc_5FC430                                         ; +0x32, 0x5fc3da\nMOVS            R0, #0xD8; unsigned int                                ; +0x34, 0x5fc3dc\nBL              _Znwj; operator new(uint)                              ; +0x36, 0x5fc3de\nMOV             R7, R0                                                 ; +0x3a, 0x5fc3e2\nBL              _ZN13DS_DictionaryC1Ev; DS_Dictionary::DS_Dictionary(void) ; +0x3c, 0x5fc3e4\nMOV             R1, R9; char *                                         ; +0x40, 0x5fc3e8\nMOV             R0, R7; this                                           ; +0x42, 0x5fc3ea\nBL              _ZN13DS_Dictionary23loadRootSubDictFromFileEPKc; DS_Dictionary::loadRootSubDictFromFile(char const*) ; +0x44, 0x5fc3ec\nMOV             R1, R4; char *                                         ; +0x48, 0x5fc3f0\nMOV             R2, R4; bool                                           ; +0x4a, 0x5fc3f2\nMOV             R0, R7; this                                           ; +0x4c, 0x5fc3f4\nBL              _ZN13DS_Dictionary13getDictForKeyEPKcb; DS_Dictionary::getDictForKey(char const*,bool) ; +0x4e, 0x5fc3f6\nMOV             R4, R0                                                 ; +0x52, 0x5fc3fa\nLDR.W           R0, [R7,#0xC8]; p                                      ; +0x54, 0x5fc3fc\nCBZ             R0, loc_5FC406                                         ; +0x58, 0x5fc400\nBL              _ZdlPv; operator delete(void *)                        ; +0x5a, 0x5fc402\nMOV             R0, R7; this                                           ; +0x5e, 0x5fc406\nBL              _ZN4pugi12xml_documentD1Ev; pugi::xml_document::~xml_document() ; +0x60, 0x5fc408\nMOV             R0, R7; p                                              ; +0x64, 0x5fc40c\nBL              _ZdlPv; operator delete(void *)                        ; +0x66, 0x5fc40e\nLDR.W           R7, [R10,#0x34]                                        ; +0x6a, 0x5fc412\nMOV             R1, R9; char *                                         ; +0x6e, 0x5fc416\nMOV             R2, R8                                                 ; +0x70, 0x5fc418\nMOV             R0, R6; int                                            ; +0x72, 0x5fc41a\nBL              sub_776584                                             ; +0x74, 0x5fc41c\nMOV             R0, R7; int                                            ; +0x78, 0x5fc420\nMOV             R1, R4; this                                           ; +0x7a, 0x5fc422\nMOV             R2, R6                                                 ; +0x7c, 0x5fc424\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x7e, 0x5fc426\nMOV             R0, R6                                                 ; +0x82, 0x5fc42a\nBL              sub_774008                                             ; +0x84, 0x5fc42c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x88, 0x5fc430\nMOV             R0, R4                                                 ; +0x8a, 0x5fc432\nLDR             R3, [R5]                                               ; +0x8c, 0x5fc434\nCMP             R2, R3                                                 ; +0x8e, 0x5fc436\nBEQ             loc_5FC43E                                             ; +0x90, 0x5fc438\nBLX             __stack_chk_fail                                       ; +0x92, 0x5fc43a\nADD             SP, SP, #0x10                                          ; +0x96, 0x5fc43e\nPOP.W           {R4-R10,PC}                                            ; +0x98, 0x5fc440", "xrefs": ["LoadingLayer::loadAssets @ 0x30b9cc", "LoadingLayer::loadAssets @ 0x30b9da", "LoadingLayer::loadAssets @ 0x30b9e8", "cocos2d::CCLabelAtlas::initWithString @ 0x5cb32e", "cocos2d::CCParticleSystem::initWithFile @ 0x5dce32", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9584", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9a3e"], "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"}