{"type": "func", "start": 6443012496, "end": 6443012634, "name": "cocos2d::CCShaderCache::programForKey", "pseudocode": "// \n// cocos2d::CCShaderCache::programForKey from 0x180089190 to 0x18008921a (138 bytes)\n// \n// 28 xrefs:\n// > cocos2d::CCAtlasNode::initWithTexture @ 0x180001d0e\n// > cocos2d::ccDrawInit @ 0x180011dfc\n// > cocos2d::CCDrawNode::init @ 0x1800152f3\n// > cocos2d::CCGridBase::initWithSize @ 0x1800236ae\n// > cocos2d::CCLabelTTF::init @ 0x18004e3bc\n// > cocos2d::CCLabelTTF::initWithString @ 0x18004e514\n// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e608\n// > cocos2d::CCLayerColor::initWithColor @ 0x1800501f6\n// > cocos2d::CCClippingNode::visit @ 0x18005c7d7\n// > cocos2d::CCMotionStreak::initWithFade @ 0x18005d017\n// > cocos2d::CCProgressTimer::initWithSprite @ 0x18005df56\n// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006179b\n// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa62\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089264\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800892e0\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008935c\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800893c3\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008942a\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089491\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008950d\n// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008955f\n// > cocos2d::CCSprite::initWithTexture @ 0x18008be09\n// > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008c513\n// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e776\n// > cocos2d::CCTexture2D::initWithData @ 0x1800a58ce\n// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac6a6\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5928\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// 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; // rcx\n  void *Block[3]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+38h] [rbp-20h]\n\n  sub_180005910(Block, a2);\n  v3 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 7), (unsigned __int8 *)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        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v4);\n  }\n  return (struct cocos2d::CCGLProgram *)v3;\n}", "assembly": "; \n; cocos2d::CCShaderCache::programForKey from 0x180089190 to 0x18008921a (138 bytes)\n; \n; 28 xrefs:\n; > cocos2d::CCAtlasNode::initWithTexture @ 0x180001d0e\n; > cocos2d::ccDrawInit @ 0x180011dfc\n; > cocos2d::CCDrawNode::init @ 0x1800152f3\n; > cocos2d::CCGridBase::initWithSize @ 0x1800236ae\n; > cocos2d::CCLabelTTF::init @ 0x18004e3bc\n; > cocos2d::CCLabelTTF::initWithString @ 0x18004e514\n; > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e608\n; > cocos2d::CCLayerColor::initWithColor @ 0x1800501f6\n; > cocos2d::CCClippingNode::visit @ 0x18005c7d7\n; > cocos2d::CCMotionStreak::initWithFade @ 0x18005d017\n; > cocos2d::CCProgressTimer::initWithSprite @ 0x18005df56\n; > cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006179b\n; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa62\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089264\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800892e0\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008935c\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800893c3\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008942a\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089491\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008950d\n; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008955f\n; > cocos2d::CCSprite::initWithTexture @ 0x18008be09\n; > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008c513\n; > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e776\n; > cocos2d::CCTexture2D::initWithData @ 0x1800a58ce\n; > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac6a6\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5928\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, 0x180089190\nsub     rsp, 50h                                                       ; +0x2, 0x180089192\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x180089196\nxor     rax, rsp                                                       ; +0xd, 0x18008919d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x1800891a0\nmov     rbx, rcx                                                       ; +0x15, 0x1800891a5\nlea     rcx, [rsp+58h+Block]                                           ; +0x18, 0x1800891a8\ncall    sub_180005910                                                  ; +0x1d, 0x1800891ad\nnop                                                                    ; +0x22, 0x1800891b2\nlea     rdx, [rsp+58h+Block]                                           ; +0x23, 0x1800891b3\nmov     rcx, [rbx+38h]                                                 ; +0x28, 0x1800891b8\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, 0x1800891bc\nmov     rbx, rax                                                       ; +0x31, 0x1800891c1\nmov     rdx, [rsp+58h+var_20]                                          ; +0x34, 0x1800891c4\ncmp     rdx, 0Fh                                                       ; +0x39, 0x1800891c9\njbe     short loc_180089204                                            ; +0x3d, 0x1800891cd\ninc     rdx                                                            ; +0x3f, 0x1800891cf\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x42, 0x1800891d2\nmov     rax, rcx                                                       ; +0x47, 0x1800891d7\ncmp     rdx, 1000h                                                     ; +0x4a, 0x1800891da\njb      short loc_1800891FF                                            ; +0x51, 0x1800891e1\nadd     rdx, 27h ; '''                                                 ; +0x53, 0x1800891e3\nmov     rcx, [rcx-8]                                                   ; +0x57, 0x1800891e7\nsub     rax, rcx                                                       ; +0x5b, 0x1800891eb\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x5e, 0x1800891ee\ncmp     rax, 1Fh                                                       ; +0x62, 0x1800891f2\njbe     short loc_1800891FF                                            ; +0x66, 0x1800891f6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x68, 0x1800891f8\ndb 0CCh                                                                ; +0x6e, 0x1800891fe\ncall    j_j_free_0                                                     ; +0x6f, 0x1800891ff\nmov     rax, rbx                                                       ; +0x74, 0x180089204\nmov     rcx, [rsp+58h+var_18]                                          ; +0x77, 0x180089207\nxor     rcx, rsp; StackCookie                                          ; +0x7c, 0x18008920c\ncall    __security_check_cookie                                        ; +0x7f, 0x18008920f\nadd     rsp, 50h                                                       ; +0x84, 0x180089214\npop     rbx                                                            ; +0x88, 0x180089218\nretn                                                                   ; +0x89, 0x180089219", "xrefs": ["cocos2d::CCAtlasNode::initWithTexture @ 0x180001d0e", "cocos2d::ccDrawInit @ 0x180011dfc", "cocos2d::CCDrawNode::init @ 0x1800152f3", "cocos2d::CCGridBase::initWithSize @ 0x1800236ae", "cocos2d::CCLabelTTF::init @ 0x18004e3bc", "cocos2d::CCLabelTTF::initWithString @ 0x18004e514", "cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e608", "cocos2d::CCLayerColor::initWithColor @ 0x1800501f6", "cocos2d::CCClippingNode::visit @ 0x18005c7d7", "cocos2d::CCMotionStreak::initWithFade @ 0x18005d017", "cocos2d::CCProgressTimer::initWithSprite @ 0x18005df56", "cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006179b", "cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa62", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089264", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800892e0", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008935c", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800893c3", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008942a", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089491", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008950d", "cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008955f", "cocos2d::CCSprite::initWithTexture @ 0x18008be09", "cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008c513", "cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e776", "cocos2d::CCTexture2D::initWithData @ 0x1800a58ce", "cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac6a6", "<???> @ 0x1801438a8", "<???> @ 0x1801b5928"], "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"}