{"type": "func", "start": 4299237236, "end": 4299237420, "name": "CCContentManager::addDict", "pseudocode": "// \n// CCContentManager::addDict from 0x100412774 to 0x10041282c (184 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleSystem::initWithFile @ 0x1001933d4\n// > LoadingLayer::loadAssets @ 0x1001d6dd0\n// > LoadingLayer::loadAssets @ 0x1001d6de4\n// > LoadingLayer::loadAssets @ 0x1001d6df8\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1003bc910\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 *__fastcall CCContentManager::addDict(CCContentManager *a1, const char *a2, bool a3)\n{\n  CCContentManager_vtbl *v6; // x20\n  __int64 v7; // x0\n  cocos2d::CCDictionary *v8; // x20\n  cocos2d::CCDictionary *v9; // x0\n  CCContentManager_vtbl *v10; // x21\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v13; // [xsp+1Fh] [xbp-21h]\n\n  v6 = a1[1].__vftable;\n  sub_100009900(__p, (char *)a2);\n  v7 = cocos2d::CCDictionary::objectForKey_1(v6, __p);\n  v8 = (cocos2d::CCDictionary *)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 )\n    v9 = cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(a2);\n  else\n    v9 = cocos2d::CCDictionary::createWithContentsOfFile(a2);\n  v8 = v9;\n  v10 = a1[1].__vftable;\n  sub_100009900(__p, (char *)a2);\n  cocos2d::CCDictionary::setObject_1(v10, v8, __p);\n  if ( v13 < 0 )\n    operator delete(__p[0]);\n  return v8;\n}", "assembly": "; \n; CCContentManager::addDict from 0x100412774 to 0x10041282c (184 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleSystem::initWithFile @ 0x1001933d4\n; > LoadingLayer::loadAssets @ 0x1001d6dd0\n; > LoadingLayer::loadAssets @ 0x1001d6de4\n; > LoadingLayer::loadAssets @ 0x1001d6df8\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1003bc910\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x100412774\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100412778\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10041277c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100412780\nADD             X29, SP, #0x40                                         ; +0x10, 0x100412784\nMOV             X22, X2                                                ; +0x14, 0x100412788\nMOV             X19, X1                                                ; +0x18, 0x10041278c\nMOV             X21, X0                                                ; +0x1c, 0x100412790\nLDR             X20, [X0,#0x38]                                        ; +0x20, 0x100412794\nADD             X0, SP, #0x40+__p; int                                 ; +0x24, 0x100412798\nBL              sub_100009900                                          ; +0x28, 0x10041279c\nADD             X1, SP, #0x40+__p                                      ; +0x2c, 0x1004127a0\nMOV             X0, X20                                                ; +0x30, 0x1004127a4\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x34, 0x1004127a8\nMOV             X20, X0                                                ; +0x38, 0x1004127ac\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x3c, 0x1004127b0\nTBNZ            W8, #0x1F, loc_1004127C0                               ; +0x40, 0x1004127b4\nCBNZ            X20, loc_100412814                                     ; +0x44, 0x1004127b8\nB               loc_1004127CC                                          ; +0x48, 0x1004127bc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x4c, 0x1004127c0\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x1004127c4\nCBNZ            X20, loc_100412814                                     ; +0x54, 0x1004127c8\nMOV             X0, X19                                                ; +0x58, 0x1004127cc\nTBZ             W22, #0, loc_1004127DC                                 ; +0x5c, 0x1004127d0\nBL              cocos2d__CCDictionary__createWithContentsOfFileThreadSafe ; +0x60, 0x1004127d4\nB               loc_1004127E0                                          ; +0x64, 0x1004127d8\nBL              cocos2d__CCDictionary__createWithContentsOfFile        ; +0x68, 0x1004127dc\nMOV             X20, X0                                                ; +0x6c, 0x1004127e0\nLDR             X21, [X21,#0x38]                                       ; +0x70, 0x1004127e4\nADD             X0, SP, #0x40+__p; int                                 ; +0x74, 0x1004127e8\nMOV             X1, X19; __s                                           ; +0x78, 0x1004127ec\nBL              sub_100009900                                          ; +0x7c, 0x1004127f0\nADD             X2, SP, #0x40+__p                                      ; +0x80, 0x1004127f4\nMOV             X0, X21                                                ; +0x84, 0x1004127f8\nMOV             X1, X20                                                ; +0x88, 0x1004127fc\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x8c, 0x100412800\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x90, 0x100412804\nTBZ             W8, #0x1F, loc_100412814                               ; +0x94, 0x100412808\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x98, 0x10041280c\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x100412810\nMOV             X0, X20                                                ; +0xa0, 0x100412814\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x100412818\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x10041281c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x100412820\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x100412824\nRET                                                                    ; +0xb4, 0x100412828", "xrefs": ["cocos2d::CCParticleSystem::initWithFile @ 0x1001933d4", "LoadingLayer::loadAssets @ 0x1001d6dd0", "LoadingLayer::loadAssets @ 0x1001d6de4", "LoadingLayer::loadAssets @ 0x1001d6df8", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1003bc910"], "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"}