{"type": "func", "start": 6442475408, "end": 6442475524, "name": "CCContentManager::sharedManager", "pseudocode": "// \n// CCContentManager::sharedManager from 0x180005f90 to 0x180006004 (116 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCLabelAtlas::initWithString @ 0x180045f9c\n// > cocos2d::CCParticleSystem::initWithFile @ 0x1800689e4\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091313\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800914ba\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091938\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad894\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\n// Hidden C++ exception states: #wind=1\nstruct CCContentManager *__fastcall CCContentManager::sharedManager()\n{\n  struct CCContentManager *result; // rax\n  cocos2d::CCObject *v1; // rax\n  _QWORD *v2; // rbx\n  struct cocos2d::CCDictionary *v3; // rax\n\n  result = (struct CCContentManager *)qword_1801A82F0;\n  if ( !qword_1801A82F0 )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x40u);\n    v2 = &v1->__vftable;\n    if ( v1 )\n    {\n      *(_OWORD *)&v1->__vftable = 0;\n      *(_OWORD *)&v1->m_nTag = 0;\n      *(_OWORD *)&v1->m_uIndexInArray = 0;\n      *(_OWORD *)&v1->m_uOrderOfArrival = 0;\n      cocos2d::CCObject::CCObject(v1);\n      *v2 = &CCContentManager::`vftable';\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801A82F0 = (__int64)v2;\n    v3 = cocos2d::CCDictionary::create();\n    v2[7] = v3;\n    cocos2d::CCObject::retain(v3);\n    return (struct CCContentManager *)qword_1801A82F0;\n  }\n  return result;\n}", "assembly": "; \n; CCContentManager::sharedManager from 0x180005f90 to 0x180006004 (116 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCLabelAtlas::initWithString @ 0x180045f9c\n; > cocos2d::CCParticleSystem::initWithFile @ 0x1800689e4\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091313\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800914ba\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091938\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad894\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    rbx                                                            ; +0x0, 0x180005f90\nsub     rsp, 20h                                                       ; +0x2, 0x180005f92\nmov     rax, cs:qword_1801A82F0                                        ; +0x6, 0x180005f96\ntest    rax, rax                                                       ; +0xd, 0x180005f9d\njnz     short loc_180005FFE                                            ; +0x10, 0x180005fa0\nlea     ecx, [rax+40h]; Size                                           ; +0x12, 0x180005fa2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x180005fa5\nmov     rbx, rax                                                       ; +0x1a, 0x180005faa\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x180005fad\ntest    rax, rax                                                       ; +0x22, 0x180005fb2\njz      short loc_180005FDD                                            ; +0x25, 0x180005fb5\nxorps   xmm0, xmm0                                                     ; +0x27, 0x180005fb7\nmovups  xmmword ptr [rax], xmm0                                        ; +0x2a, 0x180005fba\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x2d, 0x180005fbd\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x31, 0x180005fc1\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x35, 0x180005fc5\nmov     rcx, rax; this                                                 ; +0x39, 0x180005fc9\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x3c, 0x180005fcc\nlea     rax, ??_7CCContentManager@@6B@; const CCContentManager::`vftable' ; +0x41, 0x180005fd1\nmov     [rbx], rax                                                     ; +0x48, 0x180005fd8\njmp     short loc_180005FDF                                            ; +0x4b, 0x180005fdb\nxor     ebx, ebx                                                       ; +0x4d, 0x180005fdd\nmov     cs:qword_1801A82F0, rbx                                        ; +0x4f, 0x180005fdf\ncall    ?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x56, 0x180005fe6\nmov     [rbx+38h], rax                                                 ; +0x5b, 0x180005feb\nmov     rcx, rax; this                                                 ; +0x5f, 0x180005fef\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x62, 0x180005ff2\nmov     rax, cs:qword_1801A82F0                                        ; +0x67, 0x180005ff7\nadd     rsp, 20h                                                       ; +0x6e, 0x180005ffe\npop     rbx                                                            ; +0x72, 0x180006002\nretn                                                                   ; +0x73, 0x180006003", "xrefs": ["cocos2d::CCLabelAtlas::initWithString @ 0x180045f9c", "cocos2d::CCParticleSystem::initWithFile @ 0x1800689e4", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091313", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800914ba", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091938", "<???> @ 0x1801438a8", "<???> @ 0x1801ad894"], "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"}