{"type": "func", "start": 4299765184, "end": 4299765368, "name": "CCContentManager::addDict", "pseudocode": "// \n// CCContentManager::addDict from 0x1004935c0 to 0x100493678 (184 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleSystem::initWithFile @ 0x1002266a4\n// > LoadingLayer::loadAssets @ 0x10026f334\n// > LoadingLayer::loadAssets @ 0x10026f348\n// > LoadingLayer::loadAssets @ 0x10026f35c\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x100463640\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 11:05:54 +0000\n// \n\n__int64 __fastcall CCContentManager::addDict(__int64 a1, char *a2, char a3)\n{\n  __int64 v6; // x20\n  __int64 v7; // x0\n  __int64 v8; // x20\n  __int64 v9; // x0\n  __int64 v10; // x21\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v13; // [xsp+1Fh] [xbp-21h]\n\n  v6 = *(_QWORD *)(a1 + 56);\n  sub_100009900(__p, a2);\n  v7 = cocos2d::CCDictionary::objectForKey(v6, __p);\n  v8 = v7;\n  if ( v13 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v8 )\n      return v8;\n  }\n  else if ( v7 )\n  {\n    return v8;\n  }\n  if ( (a3 & 1) != 0 )\n    v9 = cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(a2);\n  else\n    v9 = cocos2d::CCDictionary::createWithContentsOfFile(a2);\n  v8 = v9;\n  v10 = *(_QWORD *)(a1 + 56);\n  sub_100009900(__p, a2);\n  cocos2d::CCDictionary::setObject(v10, v8, __p);\n  if ( v13 < 0 )\n    operator delete(__p[0]);\n  return v8;\n}", "assembly": "; \n; CCContentManager::addDict from 0x1004935c0 to 0x100493678 (184 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleSystem::initWithFile @ 0x1002266a4\n; > LoadingLayer::loadAssets @ 0x10026f334\n; > LoadingLayer::loadAssets @ 0x10026f348\n; > LoadingLayer::loadAssets @ 0x10026f35c\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x100463640\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 11:05:54 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1004935c0\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1004935c4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1004935c8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1004935cc\nADD             X29, SP, #0x40                                         ; +0x10, 0x1004935d0\nMOV             X22, X2                                                ; +0x14, 0x1004935d4\nMOV             X19, X1                                                ; +0x18, 0x1004935d8\nMOV             X21, X0                                                ; +0x1c, 0x1004935dc\nLDR             X20, [X0,#0x38]                                        ; +0x20, 0x1004935e0\nADD             X0, SP, #0x40+__p; int                                 ; +0x24, 0x1004935e4\nBL              sub_100009900                                          ; +0x28, 0x1004935e8\nADD             X1, SP, #0x40+__p                                      ; +0x2c, 0x1004935ec\nMOV             X0, X20                                                ; +0x30, 0x1004935f0\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x34, 0x1004935f4\nMOV             X20, X0                                                ; +0x38, 0x1004935f8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x3c, 0x1004935fc\nTBNZ            W8, #0x1F, loc_10049360C                               ; +0x40, 0x100493600\nCBNZ            X20, loc_100493660                                     ; +0x44, 0x100493604\nB               loc_100493618                                          ; +0x48, 0x100493608\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x4c, 0x10049360c\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x100493610\nCBNZ            X20, loc_100493660                                     ; +0x54, 0x100493614\nMOV             X0, X19                                                ; +0x58, 0x100493618\nTBZ             W22, #0, loc_100493628                                 ; +0x5c, 0x10049361c\nBL              cocos2d__CCDictionary__createWithContentsOfFileThreadSafe ; +0x60, 0x100493620\nB               loc_10049362C                                          ; +0x64, 0x100493624\nBL              cocos2d__CCDictionary__createWithContentsOfFile        ; +0x68, 0x100493628\nMOV             X20, X0                                                ; +0x6c, 0x10049362c\nLDR             X21, [X21,#0x38]                                       ; +0x70, 0x100493630\nADD             X0, SP, #0x40+__p; int                                 ; +0x74, 0x100493634\nMOV             X1, X19; __s                                           ; +0x78, 0x100493638\nBL              sub_100009900                                          ; +0x7c, 0x10049363c\nADD             X2, SP, #0x40+__p                                      ; +0x80, 0x100493640\nMOV             X0, X21                                                ; +0x84, 0x100493644\nMOV             X1, X20                                                ; +0x88, 0x100493648\nBL              cocos2d__CCDictionary__setObject                       ; +0x8c, 0x10049364c\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x90, 0x100493650\nTBZ             W8, #0x1F, loc_100493660                               ; +0x94, 0x100493654\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x98, 0x100493658\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x10049365c\nMOV             X0, X20                                                ; +0xa0, 0x100493660\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x100493664\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x100493668\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x10049366c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x100493670\nRET                                                                    ; +0xb4, 0x100493674", "xrefs": ["cocos2d::CCParticleSystem::initWithFile @ 0x1002266a4", "LoadingLayer::loadAssets @ 0x10026f334", "LoadingLayer::loadAssets @ 0x10026f348", "LoadingLayer::loadAssets @ 0x10026f35c", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x100463640"], "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"}