{"type": "func", "start": 6443025920, "end": 6443026063, "name": "cocos2d::CCShaderCache::sharedShaderCache", "pseudocode": "// \n// cocos2d::CCShaderCache::sharedShaderCache from 0x18008c600 to 0x18008c68f (143 bytes)\n// \n// 19 xrefs:\n// > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cbf\n// > cocos2d::ccDrawInit @ 0x180011fad\n// > cocos2d::CCDrawNode::init @ 0x180015204\n// > cocos2d::CCGridBase::initWithSize @ 0x180023bef\n// > cocos2d::CCLabelTTF::init @ 0x1800501ed\n// > cocos2d::CCLabelTTF::initWithString @ 0x180050345\n// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050439\n// > cocos2d::CCLayerColor::initWithColor @ 0x180052007\n// > cocos2d::CCClippingNode::visit @ 0x18005e809\n// > cocos2d::CCMotionStreak::initWithFade @ 0x18005f068\n// > cocos2d::CCProgressTimer::initWithSprite @ 0x180060137\n// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063b9c\n// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc03\n// > cocos2d::CCSprite::initWithTexture @ 0x18008efea\n// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x180091998\n// > cocos2d::CCTexture2D::initWithData @ 0x1800a93c1\n// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeab\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfc1c\n// \n// This function is hookable on this platform (idp: pc, 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:22:06 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCShaderCache *__fastcall cocos2d::CCShaderCache::sharedShaderCache()\n{\n  struct cocos2d::CCShaderCache *result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCObject *v2; // rbx\n  cocos2d::CCDictionary *v3; // rdi\n  cocos2d::CCDictionary *v4; // rax\n\n  result = qword_1801B2810;\n  if ( !qword_1801B2810 )\n  {\n    v1 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);\n    v2 = v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      *(_QWORD *)v2 = &cocos2d::CCShaderCache::`vftable';\n      v3 = nullptr;\n      *((_QWORD *)v2 + 7) = 0;\n    }\n    else\n    {\n      v3 = nullptr;\n      v2 = nullptr;\n    }\n    qword_1801B2810 = v2;\n    v4 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n    if ( v4 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v4);\n    *((_QWORD *)v2 + 7) = v3;\n    cocos2d::CCShaderCache::loadDefaultShaders(v2);\n    return qword_1801B2810;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCShaderCache::sharedShaderCache from 0x18008c600 to 0x18008c68f (143 bytes)\n; \n; 19 xrefs:\n; > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cbf\n; > cocos2d::ccDrawInit @ 0x180011fad\n; > cocos2d::CCDrawNode::init @ 0x180015204\n; > cocos2d::CCGridBase::initWithSize @ 0x180023bef\n; > cocos2d::CCLabelTTF::init @ 0x1800501ed\n; > cocos2d::CCLabelTTF::initWithString @ 0x180050345\n; > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050439\n; > cocos2d::CCLayerColor::initWithColor @ 0x180052007\n; > cocos2d::CCClippingNode::visit @ 0x18005e809\n; > cocos2d::CCMotionStreak::initWithFade @ 0x18005f068\n; > cocos2d::CCProgressTimer::initWithSprite @ 0x180060137\n; > cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063b9c\n; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc03\n; > cocos2d::CCSprite::initWithTexture @ 0x18008efea\n; > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x180091998\n; > cocos2d::CCTexture2D::initWithData @ 0x1800a93c1\n; > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeab\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfc1c\n; \n; This function is hookable on this platform (idp: pc, 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:22:06 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18008c600\npush    rdi                                                            ; +0x5, 0x18008c605\nsub     rsp, 20h                                                       ; +0x6, 0x18008c606\nmov     rax, cs:qword_1801B2810                                        ; +0xa, 0x18008c60a\ntest    rax, rax                                                       ; +0x11, 0x18008c611\njnz     short loc_18008C684                                            ; +0x14, 0x18008c614\nmov     ecx, 40h ; '@'; Size                                           ; +0x16, 0x18008c616\ncall    sub_1800E4AC0                                                  ; +0x1b, 0x18008c61b\nmov     rbx, rax                                                       ; +0x20, 0x18008c620\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x18008c623\ntest    rax, rax                                                       ; +0x28, 0x18008c628\njz      short loc_18008C647                                            ; +0x2b, 0x18008c62b\nmov     rcx, rax; this                                                 ; +0x2d, 0x18008c62d\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x30, 0x18008c630\nlea     rax, ??_7CCShaderCache@cocos2d@@6B@; const cocos2d::CCShaderCache::`vftable' ; +0x35, 0x18008c635\nmov     [rbx], rax                                                     ; +0x3c, 0x18008c63c\nxor     edi, edi                                                       ; +0x3f, 0x18008c63f\nmov     [rbx+38h], rdi                                                 ; +0x41, 0x18008c641\njmp     short loc_18008C64B                                            ; +0x45, 0x18008c645\nxor     edi, edi                                                       ; +0x47, 0x18008c647\nmov     ebx, edi                                                       ; +0x49, 0x18008c649\nmov     cs:qword_1801B2810, rbx                                        ; +0x4b, 0x18008c64b\nmov     ecx, 48h ; 'H'; Size                                           ; +0x52, 0x18008c652\ncall    sub_1800E4AC0                                                  ; +0x57, 0x18008c657\nmov     [rsp+28h+arg_0], rax                                           ; +0x5c, 0x18008c65c\ntest    rax, rax                                                       ; +0x61, 0x18008c661\njz      short loc_18008C671                                            ; +0x64, 0x18008c664\nmov     rcx, rax; this                                                 ; +0x66, 0x18008c666\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x69, 0x18008c669\nmov     rdi, rax                                                       ; +0x6e, 0x18008c66e\nmov     [rbx+38h], rdi                                                 ; +0x71, 0x18008c671\nmov     rcx, rbx; this                                                 ; +0x75, 0x18008c675\ncall    ?loadDefaultShaders@CCShaderCache@cocos2d@@QEAAXXZ; cocos2d::CCShaderCache::loadDefaultShaders(void) ; +0x78, 0x18008c678\nmov     rax, cs:qword_1801B2810                                        ; +0x7d, 0x18008c67d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x84, 0x18008c684\nadd     rsp, 20h                                                       ; +0x89, 0x18008c689\npop     rdi                                                            ; +0x8d, 0x18008c68d\nretn                                                                   ; +0x8e, 0x18008c68e", "xrefs": ["cocos2d::CCAtlasNode::initWithTexture @ 0x180001cbf", "cocos2d::ccDrawInit @ 0x180011fad", "cocos2d::CCDrawNode::init @ 0x180015204", "cocos2d::CCGridBase::initWithSize @ 0x180023bef", "cocos2d::CCLabelTTF::init @ 0x1800501ed", "cocos2d::CCLabelTTF::initWithString @ 0x180050345", "cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050439", "cocos2d::CCLayerColor::initWithColor @ 0x180052007", "cocos2d::CCClippingNode::visit @ 0x18005e809", "cocos2d::CCMotionStreak::initWithFade @ 0x18005f068", "cocos2d::CCProgressTimer::initWithSprite @ 0x180060137", "cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063b9c", "cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc03", "cocos2d::CCSprite::initWithTexture @ 0x18008efea", "cocos2d::CCSpriteBatchNode::initWithTexture @ 0x180091998", "cocos2d::CCTexture2D::initWithData @ 0x1800a93c1", "cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeab", "<???> @ 0x18014cf68", "<???> @ 0x1801bfc1c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}