{"type": "func", "start": 6443024800, "end": 6443024960, "name": "cocos2d::CCShaderCache::programForKey", "pseudocode": "// \n// cocos2d::CCShaderCache::programForKey from 0x18008c1a0 to 0x18008c240 (160 bytes)\n// \n// 28 xrefs:\n// > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cce\n// > cocos2d::ccDrawInit @ 0x180011fbc\n// > cocos2d::CCDrawNode::init @ 0x180015213\n// > cocos2d::CCGridBase::initWithSize @ 0x180023bfe\n// > cocos2d::CCLabelTTF::init @ 0x1800501fc\n// > cocos2d::CCLabelTTF::initWithString @ 0x180050354\n// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050448\n// > cocos2d::CCLayerColor::initWithColor @ 0x180052016\n// > cocos2d::CCClippingNode::visit @ 0x18005e818\n// > cocos2d::CCMotionStreak::initWithFade @ 0x18005f077\n// > cocos2d::CCProgressTimer::initWithSprite @ 0x180060146\n// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063bab\n// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc12\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c284\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c300\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c37c\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c3e3\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c44a\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c4b1\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c52d\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c57f\n// > cocos2d::CCSprite::initWithTexture @ 0x18008eff9\n// > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f703\n// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x1800919a7\n// > cocos2d::CCTexture2D::initWithData @ 0x1800a93d0\n// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeba\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfbf8\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// Alternative name is '?animationByName@CCAnimationCache@cocos2d@@QEAAPEAVCCAnimation@2@PEBD@Z'\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCGLProgram *__fastcall cocos2d::CCShaderCache::programForKey(cocos2d::CCShaderCache *this, char *a2)\n{\n  __int64 v3; // rbx\n  void *v4; // r8\n  void *Block[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+48h] [rbp-20h]\n\n  sub_180005A10(Block, a2);\n  v3 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 7), (__int64)Block);\n  if ( v7 > 0xF )\n  {\n    v4 = Block[0];\n    if ( v7 + 1 >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v4);\n  }\n  return (struct cocos2d::CCGLProgram *)v3;\n}", "assembly": "; \n; cocos2d::CCShaderCache::programForKey from 0x18008c1a0 to 0x18008c240 (160 bytes)\n; \n; 28 xrefs:\n; > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cce\n; > cocos2d::ccDrawInit @ 0x180011fbc\n; > cocos2d::CCDrawNode::init @ 0x180015213\n; > cocos2d::CCGridBase::initWithSize @ 0x180023bfe\n; > cocos2d::CCLabelTTF::init @ 0x1800501fc\n; > cocos2d::CCLabelTTF::initWithString @ 0x180050354\n; > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050448\n; > cocos2d::CCLayerColor::initWithColor @ 0x180052016\n; > cocos2d::CCClippingNode::visit @ 0x18005e818\n; > cocos2d::CCMotionStreak::initWithFade @ 0x18005f077\n; > cocos2d::CCProgressTimer::initWithSprite @ 0x180060146\n; > cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063bab\n; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc12\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c284\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c300\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c37c\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c3e3\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c44a\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c4b1\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c52d\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c57f\n; > cocos2d::CCSprite::initWithTexture @ 0x18008eff9\n; > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f703\n; > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x1800919a7\n; > cocos2d::CCTexture2D::initWithData @ 0x1800a93d0\n; > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeba\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfbf8\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; \npush    rbx                                                            ; +0x0, 0x18008c1a0\nsub     rsp, 60h                                                       ; +0x2, 0x18008c1a2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x18008c1a6\nxor     rax, rsp                                                       ; +0xd, 0x18008c1ad\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x18008c1b0\nmov     rbx, rcx                                                       ; +0x15, 0x18008c1b5\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x18, 0x18008c1b8\ncall    sub_180005A10                                                  ; +0x1d, 0x18008c1bd\nnop                                                                    ; +0x22, 0x18008c1c2\nlea     rdx, [rsp+68h+Block]                                           ; +0x23, 0x18008c1c3\nmov     rcx, [rbx+38h]                                                 ; +0x28, 0x18008c1c8\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x2c, 0x18008c1cc\nmov     rbx, rax                                                       ; +0x31, 0x18008c1d1\nmov     rdx, [rsp+68h+var_20]                                          ; +0x34, 0x18008c1d4\ncmp     rdx, 0Fh                                                       ; +0x39, 0x18008c1d9\njbe     short loc_18008C22A                                            ; +0x3d, 0x18008c1dd\ninc     rdx                                                            ; +0x3f, 0x18008c1df\nmov     r8, [rsp+68h+Block]                                            ; +0x42, 0x18008c1e2\nmov     rcx, r8                                                        ; +0x47, 0x18008c1e7\ncmp     rdx, 1000h                                                     ; +0x4a, 0x18008c1ea\njb      short loc_18008C222                                            ; +0x51, 0x18008c1f1\nadd     rdx, 27h ; '''                                                 ; +0x53, 0x18008c1f3\nmov     r8, [r8-8]                                                     ; +0x57, 0x18008c1f7\nsub     rcx, r8                                                        ; +0x5b, 0x18008c1fb\nsub     rcx, 8                                                         ; +0x5e, 0x18008c1fe\ncmp     rcx, 1Fh                                                       ; +0x62, 0x18008c202\njbe     short loc_18008C222                                            ; +0x66, 0x18008c206\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x68, 0x18008c208\nxor     r9d, r9d; LineNo                                               ; +0x71, 0x18008c211\nxor     r8d, r8d; FileName                                             ; +0x74, 0x18008c214\nxor     edx, edx; FunctionName                                         ; +0x77, 0x18008c217\nxor     ecx, ecx; Expression                                           ; +0x79, 0x18008c219\ncall    cs:_invoke_watson                                              ; +0x7b, 0x18008c21b\nalign 2                                                                ; +0x81, 0x18008c221\nmov     rcx, r8; Block                                                 ; +0x82, 0x18008c222\ncall    j_j_free_0                                                     ; +0x85, 0x18008c225\nmov     rax, rbx                                                       ; +0x8a, 0x18008c22a\nmov     rcx, [rsp+68h+var_18]                                          ; +0x8d, 0x18008c22d\nxor     rcx, rsp; StackCookie                                          ; +0x92, 0x18008c232\ncall    __security_check_cookie                                        ; +0x95, 0x18008c235\nadd     rsp, 60h                                                       ; +0x9a, 0x18008c23a\npop     rbx                                                            ; +0x9e, 0x18008c23e\nretn                                                                   ; +0x9f, 0x18008c23f", "xrefs": ["cocos2d::CCAtlasNode::initWithTexture @ 0x180001cce", "cocos2d::ccDrawInit @ 0x180011fbc", "cocos2d::CCDrawNode::init @ 0x180015213", "cocos2d::CCGridBase::initWithSize @ 0x180023bfe", "cocos2d::CCLabelTTF::init @ 0x1800501fc", "cocos2d::CCLabelTTF::initWithString @ 0x180050354", "cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050448", "cocos2d::CCLayerColor::initWithColor @ 0x180052016", "cocos2d::CCClippingNode::visit @ 0x18005e818", "cocos2d::CCMotionStreak::initWithFade @ 0x18005f077", "cocos2d::CCProgressTimer::initWithSprite @ 0x180060146", "cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063bab", "cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc12", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c284", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c300", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c37c", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c3e3", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c44a", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c4b1", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c52d", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c57f", "cocos2d::CCSprite::initWithTexture @ 0x18008eff9", "cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f703", "cocos2d::CCSpriteBatchNode::initWithTexture @ 0x1800919a7", "cocos2d::CCTexture2D::initWithData @ 0x1800a93d0", "cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeba", "<???> @ 0x18014cf68", "<???> @ 0x1801bfbf8"], "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"}