{"type": "func", "start": 6442842192, "end": 6442842324, "name": "cocos2d::CCRenderTexture::clear", "pseudocode": "// \n// cocos2d::CCRenderTexture::clear from 0x18005f850 to 0x18005f8d4 (132 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTransitionProgress::onEnter @ 0x180057668\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b33c0\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::clear(\n        cocos2d::CCRenderTexture *this,\n        GLclampf a2,\n        GLclampf a3,\n        GLclampf a4,\n        GLclampf alpha)\n{\n  cocos2d::CCDirector *v6; // rbx\n\n  cocos2d::CCRenderTexture::beginWithClear(this, a2, a3, a4, alpha, 0.0, 0, 0x4000u);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  _glewBindFramebuffer(36160, (unsigned int)this->m_nOldFBO);\n  cocos2d::CCDirector::setViewport(v6);\n  kmGLMatrixMode(5889);\n  kmGLPopMatrix();\n  kmGLMatrixMode(5888);\n  kmGLPopMatrix();\n}", "assembly": "; \n; cocos2d::CCRenderTexture::clear from 0x18005f850 to 0x18005f8d4 (132 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTransitionProgress::onEnter @ 0x180057668\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b33c0\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, 0x18005f850\npush    rdi                                                            ; +0x5, 0x18005f855\nsub     rsp, 40h                                                       ; +0x6, 0x18005f856\nmov     [rsp+48h+mask], 4000h; mask                                    ; +0xa, 0x18005f85a\nxorps   xmm0, xmm0                                                     ; +0x12, 0x18005f862\nmov     [rsp+48h+s], 0; s                                              ; +0x15, 0x18005f865\nmov     rdi, rcx                                                       ; +0x1d, 0x18005f86d\nmovss   [rsp+48h+var_20], xmm0; float                                  ; +0x20, 0x18005f870\nmovss   xmm0, [rsp+48h+arg_20]                                         ; +0x26, 0x18005f876\nmovss   [rsp+48h+alpha], xmm0; alpha                                   ; +0x2c, 0x18005f87c\ncall    ?beginWithClear@CCRenderTexture@cocos2d@@AEAAXMMMMMHI@Z; cocos2d::CCRenderTexture::beginWithClear(float,float,float,float,float,int,uint) ; +0x32, 0x18005f882\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x18005f887\nmov     r8, cs:__glewBindFramebuffer                                   ; +0x3c, 0x18005f88c\nmov     ecx, 8D40h                                                     ; +0x43, 0x18005f893\nmov     edx, [rdi+150h]                                                ; +0x48, 0x18005f898\nmov     rbx, rax                                                       ; +0x4e, 0x18005f89e\ncall    qword ptr [r8]                                                 ; +0x51, 0x18005f8a1\nmov     rcx, rbx; this                                                 ; +0x54, 0x18005f8a4\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x57, 0x18005f8a7\nmov     ecx, 1701h                                                     ; +0x5c, 0x18005f8ac\ncall    kmGLMatrixMode                                                 ; +0x61, 0x18005f8b1\ncall    kmGLPopMatrix                                                  ; +0x66, 0x18005f8b6\nmov     ecx, 1700h                                                     ; +0x6b, 0x18005f8bb\ncall    kmGLMatrixMode                                                 ; +0x70, 0x18005f8c0\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x75, 0x18005f8c5\nadd     rsp, 40h                                                       ; +0x7a, 0x18005f8ca\npop     rdi                                                            ; +0x7e, 0x18005f8ce\njmp     kmGLPopMatrix                                                  ; +0x7f, 0x18005f8cf", "xrefs": ["cocos2d::CCTransitionProgress::onEnter @ 0x180057668", "<???> @ 0x1801438a8", "<???> @ 0x1801b33c0"], "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"}