{"type": "func", "start": 6443013600, "end": 6443013741, "name": "cocos2d::CCShaderCache::sharedShaderCache", "pseudocode": "// \n// cocos2d::CCShaderCache::sharedShaderCache from 0x1800895e0 to 0x18008966d (141 bytes)\n// \n// 19 xrefs:\n// > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cff\n// > cocos2d::ccDrawInit @ 0x180011ded\n// > cocos2d::CCDrawNode::init @ 0x1800152e4\n// > cocos2d::CCGridBase::initWithSize @ 0x18002369f\n// > cocos2d::CCLabelTTF::init @ 0x18004e3ad\n// > cocos2d::CCLabelTTF::initWithString @ 0x18004e505\n// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e5f9\n// > cocos2d::CCLayerColor::initWithColor @ 0x1800501e7\n// > cocos2d::CCClippingNode::visit @ 0x18005c7c8\n// > cocos2d::CCMotionStreak::initWithFade @ 0x18005d008\n// > cocos2d::CCProgressTimer::initWithSprite @ 0x18005df47\n// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006178c\n// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa53\n// > cocos2d::CCSprite::initWithTexture @ 0x18008bdfa\n// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e767\n// > cocos2d::CCTexture2D::initWithData @ 0x1800a58bf\n// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac697\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b594c\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=2\nstruct cocos2d::CCShaderCache *__fastcall cocos2d::CCShaderCache::sharedShaderCache()\n{\n  struct cocos2d::CCShaderCache *result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCShaderCache *v2; // rbx\n  cocos2d::CCDictionary *v3; // rdi\n  cocos2d::CCDictionary *v4; // rax\n\n  result = (struct cocos2d::CCShaderCache *)qword_1801A87B0;\n  if ( !qword_1801A87B0 )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x40u);\n    v2 = (cocos2d::CCShaderCache *)v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      v2->__vftable = (cocos2d::CCShaderCache_vtbl *)&cocos2d::CCShaderCache::`vftable';\n      v3 = nullptr;\n      v2[1].__vftable = nullptr;\n    }\n    else\n    {\n      v3 = nullptr;\n      v2 = nullptr;\n    }\n    qword_1801A87B0 = v2;\n    v4 = (cocos2d::CCDictionary *)operator new(0x48u);\n    if ( v4 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v4);\n    v2[1].__vftable = (cocos2d::CCShaderCache_vtbl *)v3;\n    cocos2d::CCShaderCache::loadDefaultShaders(v2);\n    return (struct cocos2d::CCShaderCache *)qword_1801A87B0;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCShaderCache::sharedShaderCache from 0x1800895e0 to 0x18008966d (141 bytes)\n; \n; 19 xrefs:\n; > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cff\n; > cocos2d::ccDrawInit @ 0x180011ded\n; > cocos2d::CCDrawNode::init @ 0x1800152e4\n; > cocos2d::CCGridBase::initWithSize @ 0x18002369f\n; > cocos2d::CCLabelTTF::init @ 0x18004e3ad\n; > cocos2d::CCLabelTTF::initWithString @ 0x18004e505\n; > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e5f9\n; > cocos2d::CCLayerColor::initWithColor @ 0x1800501e7\n; > cocos2d::CCClippingNode::visit @ 0x18005c7c8\n; > cocos2d::CCMotionStreak::initWithFade @ 0x18005d008\n; > cocos2d::CCProgressTimer::initWithSprite @ 0x18005df47\n; > cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006178c\n; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa53\n; > cocos2d::CCSprite::initWithTexture @ 0x18008bdfa\n; > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e767\n; > cocos2d::CCTexture2D::initWithData @ 0x1800a58bf\n; > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac697\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b594c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800895e0\npush    rdi                                                            ; +0x5, 0x1800895e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800895e6\nmov     rax, cs:qword_1801A87B0                                        ; +0xa, 0x1800895ea\ntest    rax, rax                                                       ; +0x11, 0x1800895f1\njnz     short loc_180089662                                            ; +0x14, 0x1800895f4\nlea     ecx, [rax+40h]; Size                                           ; +0x16, 0x1800895f6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1800895f9\nmov     rbx, rax                                                       ; +0x1e, 0x1800895fe\nmov     [rsp+28h+arg_0], rax                                           ; +0x21, 0x180089601\ntest    rax, rax                                                       ; +0x26, 0x180089606\njz      short loc_180089625                                            ; +0x29, 0x180089609\nmov     rcx, rax; this                                                 ; +0x2b, 0x18008960b\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2e, 0x18008960e\nlea     rax, ??_7CCShaderCache@cocos2d@@6B@; const cocos2d::CCShaderCache::`vftable' ; +0x33, 0x180089613\nmov     [rbx], rax                                                     ; +0x3a, 0x18008961a\nxor     edi, edi                                                       ; +0x3d, 0x18008961d\nmov     [rbx+38h], rdi                                                 ; +0x3f, 0x18008961f\njmp     short loc_180089629                                            ; +0x43, 0x180089623\nxor     edi, edi                                                       ; +0x45, 0x180089625\nmov     ebx, edi                                                       ; +0x47, 0x180089627\nmov     cs:qword_1801A87B0, rbx                                        ; +0x49, 0x180089629\nmov     ecx, 48h ; 'H'; Size                                           ; +0x50, 0x180089630\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x55, 0x180089635\nmov     [rsp+28h+arg_0], rax                                           ; +0x5a, 0x18008963a\ntest    rax, rax                                                       ; +0x5f, 0x18008963f\njz      short loc_18008964F                                            ; +0x62, 0x180089642\nmov     rcx, rax; this                                                 ; +0x64, 0x180089644\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x67, 0x180089647\nmov     rdi, rax                                                       ; +0x6c, 0x18008964c\nmov     [rbx+38h], rdi                                                 ; +0x6f, 0x18008964f\nmov     rcx, rbx; this                                                 ; +0x73, 0x180089653\ncall    ?loadDefaultShaders@CCShaderCache@cocos2d@@QEAAXXZ; cocos2d::CCShaderCache::loadDefaultShaders(void) ; +0x76, 0x180089656\nmov     rax, cs:qword_1801A87B0                                        ; +0x7b, 0x18008965b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x82, 0x180089662\nadd     rsp, 20h                                                       ; +0x87, 0x180089667\npop     rdi                                                            ; +0x8b, 0x18008966b\nretn                                                                   ; +0x8c, 0x18008966c", "xrefs": ["cocos2d::CCAtlasNode::initWithTexture @ 0x180001cff", "cocos2d::ccDrawInit @ 0x180011ded", "cocos2d::CCDrawNode::init @ 0x1800152e4", "cocos2d::CCGridBase::initWithSize @ 0x18002369f", "cocos2d::CCLabelTTF::init @ 0x18004e3ad", "cocos2d::CCLabelTTF::initWithString @ 0x18004e505", "cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e5f9", "cocos2d::CCLayerColor::initWithColor @ 0x1800501e7", "cocos2d::CCClippingNode::visit @ 0x18005c7c8", "cocos2d::CCMotionStreak::initWithFade @ 0x18005d008", "cocos2d::CCProgressTimer::initWithSprite @ 0x18005df47", "cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006178c", "cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa53", "cocos2d::CCSprite::initWithTexture @ 0x18008bdfa", "cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e767", "cocos2d::CCTexture2D::initWithData @ 0x1800a58bf", "cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac697", "<???> @ 0x1801438a8", "<???> @ 0x1801b594c"], "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"}