{"type": "func", "start": 6442591568, "end": 6442591663, "name": "cocos2d::CCGrabber::beforeRender", "pseudocode": "// \n// cocos2d::CCGrabber::beforeRender from 0x180022550 to 0x1800225af (95 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCGridBase::beforeDraw @ 0x180022bec\n// > <???> @ 0x1801b8fbc\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:28 +0000\n// \n\nvoid __fastcall cocos2d::CCGrabber::beforeRender(__int64 a1)\n{\n  glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));\n  _glewBindFramebuffer(36160, *(unsigned int *)(a1 + 56));\n  glGetFloatv(0xC22u, (GLfloat *)(a1 + 64));\n  glClearColor(0.0, 0.0, 0.0, 0.0);\n  glClear(0x4100u);\n}", "assembly": "; \n; cocos2d::CCGrabber::beforeRender from 0x180022550 to 0x1800225af (95 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCGridBase::beforeDraw @ 0x180022bec\n; > <???> @ 0x1801b8fbc\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:28 +0000\n; \npush    rbx                                                            ; +0x0, 0x180022550\nsub     rsp, 20h                                                       ; +0x2, 0x180022552\nmov     rbx, rcx                                                       ; +0x6, 0x180022556\nlea     rdx, [rcx+3Ch]; params                                         ; +0x9, 0x180022559\nmov     ecx, 8CA6h; pname                                              ; +0xd, 0x18002255d\ncall    cs:glGetIntegerv                                               ; +0x12, 0x180022562\nmov     rax, cs:__glewBindFramebuffer                                  ; +0x18, 0x180022568\nmov     ecx, 8D40h                                                     ; +0x1f, 0x18002256f\nmov     edx, [rbx+38h]                                                 ; +0x24, 0x180022574\nmov     r8, [rax]                                                      ; +0x27, 0x180022577\ncall    r8                                                             ; +0x2a, 0x18002257a\nlea     rdx, [rbx+40h]; params                                         ; +0x2d, 0x18002257d\nmov     ecx, 0C22h; pname                                              ; +0x31, 0x180022581\ncall    cs:glGetFloatv                                                 ; +0x36, 0x180022586\nxorps   xmm3, xmm3; alpha                                              ; +0x3c, 0x18002258c\nxorps   xmm2, xmm2; blue                                               ; +0x3f, 0x18002258f\nxorps   xmm1, xmm1; green                                              ; +0x42, 0x180022592\nxorps   xmm0, xmm0; red                                                ; +0x45, 0x180022595\ncall    cs:glClearColor                                                ; +0x48, 0x180022598\nmov     ecx, 4100h                                                     ; +0x4e, 0x18002259e\nadd     rsp, 20h                                                       ; +0x53, 0x1800225a3\npop     rbx                                                            ; +0x57, 0x1800225a7\njmp     cs:glClear                                                     ; +0x58, 0x1800225a8", "xrefs": ["cocos2d::CCGridBase::beforeDraw @ 0x180022bec", "<???> @ 0x1801b8fbc"], "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"}