{"type": "func", "start": 6442843552, "end": 6442843642, "name": "cocos2d::CCRenderTexture::end", "pseudocode": "// \n// cocos2d::CCRenderTexture::end from 0x18005fda0 to 0x18005fdfa (90 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054c8b\n// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054d42\n// > cocos2d::CCTransitionProgress::onEnter @ 0x180057688\n// > cocos2d::CCRenderTexture::endToLua @ 0x1800d1720\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3444\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\nvoid __fastcall cocos2d::CCRenderTexture::end(cocos2d::CCRenderTexture *this)\n{\n  cocos2d::CCDirector *v2; // rdi\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  _glewBindFramebuffer(36160, (unsigned int)this->m_nOldFBO);\n  cocos2d::CCDirector::setViewport(v2);\n  kmGLMatrixMode(5889);\n  kmGLPopMatrix();\n  kmGLMatrixMode(5888);\n  kmGLPopMatrix();\n}", "assembly": "; \n; cocos2d::CCRenderTexture::end from 0x18005fda0 to 0x18005fdfa (90 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054c8b\n; > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054d42\n; > cocos2d::CCTransitionProgress::onEnter @ 0x180057688\n; > cocos2d::CCRenderTexture::endToLua @ 0x1800d1720\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3444\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_0], rbx                                               ; +0x0, 0x18005fda0\npush    rdi                                                            ; +0x5, 0x18005fda5\nsub     rsp, 20h                                                       ; +0x6, 0x18005fda6\nmov     rbx, rcx                                                       ; +0xa, 0x18005fdaa\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x18005fdad\nmov     r8, cs:__glewBindFramebuffer                                   ; +0x12, 0x18005fdb2\nmov     ecx, 8D40h                                                     ; +0x19, 0x18005fdb9\nmov     edx, [rbx+150h]                                                ; +0x1e, 0x18005fdbe\nmov     rdi, rax                                                       ; +0x24, 0x18005fdc4\ncall    qword ptr [r8]                                                 ; +0x27, 0x18005fdc7\nmov     rcx, rdi; this                                                 ; +0x2a, 0x18005fdca\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x2d, 0x18005fdcd\nmov     ecx, 1701h                                                     ; +0x32, 0x18005fdd2\ncall    kmGLMatrixMode                                                 ; +0x37, 0x18005fdd7\ncall    kmGLPopMatrix                                                  ; +0x3c, 0x18005fddc\nmov     ecx, 1700h                                                     ; +0x41, 0x18005fde1\ncall    kmGLMatrixMode                                                 ; +0x46, 0x18005fde6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x18005fdeb\nadd     rsp, 20h                                                       ; +0x50, 0x18005fdf0\npop     rdi                                                            ; +0x54, 0x18005fdf4\njmp     kmGLPopMatrix                                                  ; +0x55, 0x18005fdf5", "xrefs": ["cocos2d::CCTransitionCrossFade::onEnter @ 0x180054c8b", "cocos2d::CCTransitionCrossFade::onEnter @ 0x180054d42", "cocos2d::CCTransitionProgress::onEnter @ 0x180057688", "cocos2d::CCRenderTexture::endToLua @ 0x1800d1720", "<???> @ 0x1801438a8", "<???> @ 0x1801b3444"], "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"}