{"type": "func", "start": 6276168, "end": 6276324, "name": "CCContentManager::addDictDS", "pseudocode": "// \n// CCContentManager::addDictDS from 0x5fc448 to 0x5fc4e4 (156 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::CCDictionary *CCContentManager::addDictDS(CCContentManager *a1, const char *a2)\n{\n  CCContentManager_vtbl *v2; // r4\n  cocos2d::CCDictionary *DictForKey; // r4\n  DS_Dictionary *v6; // r7\n  pugi::xml_node *m_start; // r0\n  CCContentManager_vtbl *v8; // r7\n  const char *v10; // [sp+8h] [bp-8h] BYREF\n\n  v2 = a1[1].__vftable;\n  sub_776584((int)&v10, (char *)a2);\n  DictForKey = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((int)v2, &v10);\n  sub_774008(&v10);\n  if ( !DictForKey )\n  {\n    v6 = (DS_Dictionary *)operator new(0xD8u);\n    DS_Dictionary::DS_Dictionary(v6);\n    DS_Dictionary::loadRootSubDictFromFile(v6, a2);\n    DictForKey = DS_Dictionary::getDictForKey(v6, nullptr, 0);\n    m_start = v6->dictTree.m_start;\n    if ( m_start )\n      operator delete(m_start);\n    pugi::xml_document::~xml_document(&v6->doc);\n    operator delete(v6);\n    v8 = a1[1].__vftable;\n    sub_776584((int)&v10, (char *)a2);\n    cocos2d::CCDictionary::setObject((int)v8, DictForKey, &v10);\n    sub_774008(&v10);\n  }\n  return DictForKey;\n}", "assembly": "; \n; CCContentManager::addDictDS from 0x5fc448 to 0x5fc4e4 (156 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.W          {R0-R10,LR}                                            ; +0x0, 0x5fc448\nADD             R6, SP, #0x10+var_8                                    ; +0x4, 0x5fc44c\nLDR             R5, =(__stack_chk_guard_ptr - 0x5FC45C)                ; +0x6, 0x5fc44e\nADD.W           R8, SP, #0x10+var_C                                    ; +0x8, 0x5fc450\nLDR             R4, [R0,#0x34]                                         ; +0xc, 0x5fc454\nMOV             R10, R0                                                ; +0xe, 0x5fc456\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5fc458\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x5fc45a\nMOV             R2, R8                                                 ; +0x14, 0x5fc45c\nMOV             R0, R6; int                                            ; +0x16, 0x5fc45e\nMOV             R9, R1                                                 ; +0x18, 0x5fc460\nLDR             R3, [R5]                                               ; +0x1a, 0x5fc462\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1c, 0x5fc464\nBL              sub_776584                                             ; +0x1e, 0x5fc466\nMOV             R0, R4                                                 ; +0x22, 0x5fc46a\nMOV             R1, R6                                                 ; +0x24, 0x5fc46c\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x26, 0x5fc46e\nMOV             R4, R0                                                 ; +0x2a, 0x5fc472\nMOV             R0, R6                                                 ; +0x2c, 0x5fc474\nBL              sub_774008                                             ; +0x2e, 0x5fc476\nCBNZ            R4, loc_5FC4D0                                         ; +0x32, 0x5fc47a\nMOVS            R0, #0xD8; unsigned int                                ; +0x34, 0x5fc47c\nBL              _Znwj; operator new(uint)                              ; +0x36, 0x5fc47e\nMOV             R7, R0                                                 ; +0x3a, 0x5fc482\nBL              _ZN13DS_DictionaryC1Ev; DS_Dictionary::DS_Dictionary(void) ; +0x3c, 0x5fc484\nMOV             R1, R9; char *                                         ; +0x40, 0x5fc488\nMOV             R0, R7; this                                           ; +0x42, 0x5fc48a\nBL              _ZN13DS_Dictionary23loadRootSubDictFromFileEPKc; DS_Dictionary::loadRootSubDictFromFile(char const*) ; +0x44, 0x5fc48c\nMOV             R1, R4; char *                                         ; +0x48, 0x5fc490\nMOV             R2, R4; bool                                           ; +0x4a, 0x5fc492\nMOV             R0, R7; this                                           ; +0x4c, 0x5fc494\nBL              _ZN13DS_Dictionary13getDictForKeyEPKcb; DS_Dictionary::getDictForKey(char const*,bool) ; +0x4e, 0x5fc496\nMOV             R4, R0                                                 ; +0x52, 0x5fc49a\nLDR.W           R0, [R7,#0xC8]; p                                      ; +0x54, 0x5fc49c\nCBZ             R0, loc_5FC4A6                                         ; +0x58, 0x5fc4a0\nBL              _ZdlPv; operator delete(void *)                        ; +0x5a, 0x5fc4a2\nMOV             R0, R7; this                                           ; +0x5e, 0x5fc4a6\nBL              _ZN4pugi12xml_documentD1Ev; pugi::xml_document::~xml_document() ; +0x60, 0x5fc4a8\nMOV             R0, R7; p                                              ; +0x64, 0x5fc4ac\nBL              _ZdlPv; operator delete(void *)                        ; +0x66, 0x5fc4ae\nLDR.W           R7, [R10,#0x34]                                        ; +0x6a, 0x5fc4b2\nMOV             R1, R9; char *                                         ; +0x6e, 0x5fc4b6\nMOV             R2, R8                                                 ; +0x70, 0x5fc4b8\nMOV             R0, R6; int                                            ; +0x72, 0x5fc4ba\nBL              sub_776584                                             ; +0x74, 0x5fc4bc\nMOV             R0, R7; int                                            ; +0x78, 0x5fc4c0\nMOV             R1, R4; this                                           ; +0x7a, 0x5fc4c2\nMOV             R2, R6                                                 ; +0x7c, 0x5fc4c4\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x7e, 0x5fc4c6\nMOV             R0, R6                                                 ; +0x82, 0x5fc4ca\nBL              sub_774008                                             ; +0x84, 0x5fc4cc\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x88, 0x5fc4d0\nMOV             R0, R4                                                 ; +0x8a, 0x5fc4d2\nLDR             R3, [R5]                                               ; +0x8c, 0x5fc4d4\nCMP             R2, R3                                                 ; +0x8e, 0x5fc4d6\nBEQ             loc_5FC4DE                                             ; +0x90, 0x5fc4d8\nBLX             __stack_chk_fail                                       ; +0x92, 0x5fc4da\nADD             SP, SP, #0x10                                          ; +0x96, 0x5fc4de\nPOP.W           {R4-R10,PC}                                            ; +0x98, 0x5fc4e0", "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"}