{"type": "func", "start": 8429904, "end": 8430076, "name": "CCContentManager::addDict", "pseudocode": "// \n// CCContentManager::addDict from 0x80a150 to 0x80a1fc (172 bytes)\n// \n// 7 xrefs:\n// > LoadingLayer::loadAssets @ 0x3fbe78\n// > LoadingLayer::loadAssets @ 0x3fbe86\n// > LoadingLayer::loadAssets @ 0x3fbe94\n// > cocos2d::CCLabelAtlas::initWithString @ 0x7d2630\n// > cocos2d::CCParticleSystem::initWithFile @ 0x7e568e\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f3efc\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f46e4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:01:29 +0000\n// \n\ncocos2d::CCObject *__fastcall CCContentManager::addDict(CCContentManager *this, const char *a2, int a3, int a4)\n{\n  int v6; // r4\n  size_t v7; // r0\n  int v8; // r4\n  DS_Dictionary *v9; // r5\n  cocos2d::CCObject *DictForKey; // r10\n  size_t v11; // r0\n  int v12; // r5\n  CCContentManager *v14; // [sp+0h] [bp-10h] BYREF\n  const char *v15; // [sp+4h] [bp-Ch]\n  int v16; // [sp+8h] [bp-8h]\n  int v17; // [sp+Ch] [bp-4h]\n\n  v14 = this;\n  v15 = a2;\n  v16 = a3;\n  v17 = a4;\n  v6 = *((_DWORD *)this + 13);\n  v14 = nullptr;\n  v15 = nullptr;\n  v16 = 0;\n  v7 = strlen(a2);\n  std::string::__init((int *)&v14, a2, v7);\n  v8 = cocos2d::CCDictionary::objectForKey(v6, (int)&v14);\n  std::string::~string((int)&v14);\n  if ( v8 )\n    return (cocos2d::CCObject *)v8;\n  v9 = (DS_Dictionary *)operator new(0xD8u);\n  DS_Dictionary::DS_Dictionary(v9);\n  DS_Dictionary::loadRootSubDictFromFile(v9, a2);\n  DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(v9, nullptr, 0);\n  DS_Dictionary::~DS_Dictionary(v9);\n  operator delete(v9);\n  v14 = nullptr;\n  v15 = nullptr;\n  v16 = 0;\n  v11 = strlen(a2);\n  v12 = *((_DWORD *)this + 13);\n  std::string::__init((int *)&v14, a2, v11);\n  cocos2d::CCDictionary::setObject(v12, DictForKey, (int)&v14);\n  std::string::~string((int)&v14);\n  return DictForKey;\n}", "assembly": "; \n; CCContentManager::addDict from 0x80a150 to 0x80a1fc (172 bytes)\n; \n; 7 xrefs:\n; > LoadingLayer::loadAssets @ 0x3fbe78\n; > LoadingLayer::loadAssets @ 0x3fbe86\n; > LoadingLayer::loadAssets @ 0x3fbe94\n; > cocos2d::CCLabelAtlas::initWithString @ 0x7d2630\n; > cocos2d::CCParticleSystem::initWithFile @ 0x7e568e\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f3efc\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f46e4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:01:29 +0000\n; \nPUSH.W          {R0-R10,LR}                                            ; +0x0, 0x80a150\nMOV             R9, R0                                                 ; +0x4, 0x80a154\nLDR             R6, =(__stack_chk_guard_ptr - 0x80A162)                ; +0x6, 0x80a156\nMOV             R8, R1                                                 ; +0x8, 0x80a158\nLDR             R4, [R0,#0x34]                                         ; +0xa, 0x80a15a\nMOV             R0, R1; char *                                         ; +0xc, 0x80a15c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x80a15e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x80a160\nLDR             R3, [R6]                                               ; +0x12, 0x80a162\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x80a164\nMOVS            R3, #0                                                 ; +0x16, 0x80a166\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x18, 0x80a168\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x1a, 0x80a16a\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x1c, 0x80a16c\nBLX             strlen                                                 ; +0x1e, 0x80a16e\nMOV             R1, R8                                                 ; +0x22, 0x80a172\nMOV             R2, R0                                                 ; +0x24, 0x80a174\nMOV             R0, SP                                                 ; +0x26, 0x80a176\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x28, 0x80a178\nMOV             R0, R4                                                 ; +0x2c, 0x80a17c\nMOV             R1, SP                                                 ; +0x2e, 0x80a17e\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x30, 0x80a180\nMOV             R4, R0                                                 ; +0x34, 0x80a184\nMOV             R0, SP                                                 ; +0x36, 0x80a186\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x38, 0x80a188\nCBNZ            R4, loc_80A1E8                                         ; +0x3c, 0x80a18c\nMOVS            R0, #0xD8; unsigned int                                ; +0x3e, 0x80a18e\nBL              _Znwj; operator new(uint)                              ; +0x40, 0x80a190\nMOV             R5, R0                                                 ; +0x44, 0x80a194\nBL              _ZN13DS_DictionaryC1Ev; DS_Dictionary::DS_Dictionary(void) ; +0x46, 0x80a196\nMOV             R0, R5; this                                           ; +0x4a, 0x80a19a\nMOV             R1, R8; char *                                         ; +0x4c, 0x80a19c\nBL              _ZN13DS_Dictionary23loadRootSubDictFromFileEPKc; DS_Dictionary::loadRootSubDictFromFile(char const*) ; +0x4e, 0x80a19e\nMOV             R1, R4; char *                                         ; +0x52, 0x80a1a2\nMOV             R2, R4; bool                                           ; +0x54, 0x80a1a4\nMOV             R0, R5; this                                           ; +0x56, 0x80a1a6\nBL              _ZN13DS_Dictionary13getDictForKeyEPKcb; DS_Dictionary::getDictForKey(char const*,bool) ; +0x58, 0x80a1a8\nMOV             R10, R0                                                ; +0x5c, 0x80a1ac\nMOV             R0, R5; this                                           ; +0x5e, 0x80a1ae\nBL              _ZN13DS_DictionaryD2Ev; DS_Dictionary::~DS_Dictionary() ; +0x60, 0x80a1b0\nMOV             R0, R5; void *                                         ; +0x64, 0x80a1b4\nBL              _ZdlPv; operator delete(void *)                        ; +0x66, 0x80a1b6\nMOV             R0, R8; char *                                         ; +0x6a, 0x80a1ba\nSTR             R4, [SP,#0x10+var_10]                                  ; +0x6c, 0x80a1bc\nSTR             R4, [SP,#0x10+var_C]                                   ; +0x6e, 0x80a1be\nSTR             R4, [SP,#0x10+var_8]                                   ; +0x70, 0x80a1c0\nBLX             strlen                                                 ; +0x72, 0x80a1c2\nLDR.W           R5, [R9,#0x34]                                         ; +0x76, 0x80a1c6\nMOV             R1, R8                                                 ; +0x7a, 0x80a1ca\nMOV             R2, R0                                                 ; +0x7c, 0x80a1cc\nMOV             R0, SP                                                 ; +0x7e, 0x80a1ce\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x80, 0x80a1d0\nMOV             R0, R5; int                                            ; +0x84, 0x80a1d4\nMOV             R1, R10; this                                          ; +0x86, 0x80a1d6\nMOV             R2, SP                                                 ; +0x88, 0x80a1d8\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x8a, 0x80a1da\nMOV             R0, SP                                                 ; +0x8e, 0x80a1de\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x90, 0x80a1e0\nMOV             R0, R10                                                ; +0x94, 0x80a1e4\nB               loc_80A1EA                                             ; +0x96, 0x80a1e6\nMOV             R0, R4                                                 ; +0x98, 0x80a1e8\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x9a, 0x80a1ea\nLDR             R3, [R6]                                               ; +0x9c, 0x80a1ec\nCMP             R2, R3                                                 ; +0x9e, 0x80a1ee\nBEQ             loc_80A1F6                                             ; +0xa0, 0x80a1f0\nBLX             __stack_chk_fail                                       ; +0xa2, 0x80a1f2\nADD             SP, SP, #0x10                                          ; +0xa6, 0x80a1f6\nPOP.W           {R4-R10,PC}                                            ; +0xa8, 0x80a1f8", "xrefs": ["LoadingLayer::loadAssets @ 0x3fbe78", "LoadingLayer::loadAssets @ 0x3fbe86", "LoadingLayer::loadAssets @ 0x3fbe94", "cocos2d::CCLabelAtlas::initWithString @ 0x7d2630", "cocos2d::CCParticleSystem::initWithFile @ 0x7e568e", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f3efc", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f46e4"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}