{"type": "func", "start": 6442850864, "end": 6442850999, "name": "cocos2d::CCRenderTexture::clear", "pseudocode": "// \n// cocos2d::CCRenderTexture::clear from 0x180061a30 to 0x180061ab7 (135 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTransitionProgress::onEnter @ 0x18005956e\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd684\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:21:51 +0000\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 + 84));\n  cocos2d::CCDirector::setViewport(v6);\n  kmGLMatrixMode(5889);\n  kmGLPopMatrix();\n  kmGLMatrixMode(5888);\n  kmGLPopMatrix();\n}", "assembly": "; \n; cocos2d::CCRenderTexture::clear from 0x180061a30 to 0x180061ab7 (135 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTransitionProgress::onEnter @ 0x18005956e\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd684\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:21:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180061a30\npush    rdi                                                            ; +0x5, 0x180061a35\nsub     rsp, 40h                                                       ; +0x6, 0x180061a36\nmov     [rsp+48h+mask], 4000h; mask                                    ; +0xa, 0x180061a3a\nxorps   xmm0, xmm0                                                     ; +0x12, 0x180061a42\nmov     [rsp+48h+s], 0; s                                              ; +0x15, 0x180061a45\nmov     rdi, rcx                                                       ; +0x1d, 0x180061a4d\nmovss   [rsp+48h+var_20], xmm0; float                                  ; +0x20, 0x180061a50\nmovss   xmm0, [rsp+48h+arg_20]                                         ; +0x26, 0x180061a56\nmovss   [rsp+48h+alpha], xmm0; alpha                                   ; +0x2c, 0x180061a5c\ncall    ?beginWithClear@CCRenderTexture@cocos2d@@AEAAXMMMMMHI@Z; cocos2d::CCRenderTexture::beginWithClear(float,float,float,float,float,int,uint) ; +0x32, 0x180061a62\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x180061a67\nmov     rcx, cs:__glewBindFramebuffer                                  ; +0x3c, 0x180061a6c\nmov     rbx, rax                                                       ; +0x43, 0x180061a73\nmov     edx, [rdi+150h]                                                ; +0x46, 0x180061a76\nmov     r8, [rcx]                                                      ; +0x4c, 0x180061a7c\nmov     ecx, 8D40h                                                     ; +0x4f, 0x180061a7f\ncall    r8                                                             ; +0x54, 0x180061a84\nmov     rcx, rbx; this                                                 ; +0x57, 0x180061a87\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x5a, 0x180061a8a\nmov     ecx, 1701h                                                     ; +0x5f, 0x180061a8f\ncall    kmGLMatrixMode                                                 ; +0x64, 0x180061a94\ncall    kmGLPopMatrix                                                  ; +0x69, 0x180061a99\nmov     ecx, 1700h                                                     ; +0x6e, 0x180061a9e\ncall    kmGLMatrixMode                                                 ; +0x73, 0x180061aa3\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x78, 0x180061aa8\nadd     rsp, 40h                                                       ; +0x7d, 0x180061aad\npop     rdi                                                            ; +0x81, 0x180061ab1\njmp     kmGLPopMatrix                                                  ; +0x82, 0x180061ab2", "xrefs": ["cocos2d::CCTransitionProgress::onEnter @ 0x18005956e", "<???> @ 0x18014cf68", "<???> @ 0x1801bd684"], "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"}