{"type": "func", "start": 6442849376, "end": 6442849531, "name": "cocos2d::CCRenderTexture::~CCRenderTexture", "pseudocode": "// \n// cocos2d::CCRenderTexture::~CCRenderTexture from 0x180061460 to 0x1800614fb (155 bytes)\n// \n// 4 xrefs:\n// > sub_180061500 @ 0x18006155e\n// > sub_180061500 @ 0x18006151c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd630\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::~CCRenderTexture(cocos2d::CCRenderTexture *this)\n{\n  cocos2d::CCObject *v2; // rcx\n  cocos2d::CCObject *v3; // rcx\n  __int64 v4; // rcx\n\n  *(_QWORD *)this = &cocos2d::CCRenderTexture::`vftable';\n  v2 = *((cocos2d::CCObject **)this + 40);\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  v3 = *((cocos2d::CCObject **)this + 44);\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  _glewDeleteFramebuffers(1, (char *)this + 328);\n  if ( *((_DWORD *)this + 83) )\n    _glewDeleteRenderbuffers(1);\n  v4 = *((_QWORD *)this + 45);\n  if ( v4 )\n  {\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    *((_QWORD *)this + 45) = 0;\n  }\n  cocos2d::CCNode::~CCNode(this);\n}", "assembly": "; \n; cocos2d::CCRenderTexture::~CCRenderTexture from 0x180061460 to 0x1800614fb (155 bytes)\n; \n; 4 xrefs:\n; > sub_180061500 @ 0x18006155e\n; > sub_180061500 @ 0x18006151c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd630\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; \npush    rbx                                                            ; +0x0, 0x180061460\nsub     rsp, 20h                                                       ; +0x2, 0x180061462\nmov     rbx, rcx                                                       ; +0x6, 0x180061466\nlea     rax, ??_7CCRenderTexture@cocos2d@@6B@; const cocos2d::CCRenderTexture::`vftable' ; +0x9, 0x180061469\nmov     [rcx], rax                                                     ; +0x10, 0x180061470\nmov     rcx, [rcx+140h]; this                                          ; +0x13, 0x180061473\ntest    rcx, rcx                                                       ; +0x1a, 0x18006147a\njz      short loc_180061484                                            ; +0x1d, 0x18006147d\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1f, 0x18006147f\nmov     rcx, [rbx+160h]; this                                          ; +0x24, 0x180061484\ntest    rcx, rcx                                                       ; +0x2b, 0x18006148b\njz      short loc_180061495                                            ; +0x2e, 0x18006148e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x30, 0x180061490\nlea     rdx, [rbx+148h]                                                ; +0x35, 0x180061495\nmov     rax, cs:__glewDeleteFramebuffers                               ; +0x3c, 0x18006149c\nmov     r8, [rax]                                                      ; +0x43, 0x1800614a3\nmov     ecx, 1                                                         ; +0x46, 0x1800614a6\ncall    r8                                                             ; +0x4b, 0x1800614ab\nlea     rdx, [rbx+14Ch]                                                ; +0x4e, 0x1800614ae\ncmp     dword ptr [rdx], 0                                             ; +0x55, 0x1800614b5\njz      short loc_1800614CC                                            ; +0x58, 0x1800614b8\nmov     rax, cs:__glewDeleteRenderbuffers                              ; +0x5a, 0x1800614ba\nmov     r8, [rax]                                                      ; +0x61, 0x1800614c1\nmov     ecx, 1                                                         ; +0x64, 0x1800614c4\ncall    r8                                                             ; +0x69, 0x1800614c9\nmov     rcx, [rbx+168h]                                                ; +0x6c, 0x1800614cc\ntest    rcx, rcx                                                       ; +0x73, 0x1800614d3\njz      short loc_1800614EE                                            ; +0x76, 0x1800614d6\nmov     rax, [rcx]                                                     ; +0x78, 0x1800614d8\nmov     edx, 1                                                         ; +0x7b, 0x1800614db\ncall    qword ptr [rax+8]                                              ; +0x80, 0x1800614e0\nmov     qword ptr [rbx+168h], 0                                        ; +0x83, 0x1800614e3\nmov     rcx, rbx; this                                                 ; +0x8e, 0x1800614ee\nadd     rsp, 20h                                                       ; +0x91, 0x1800614f1\npop     rbx                                                            ; +0x95, 0x1800614f5\njmp     ??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void)     ; +0x96, 0x1800614f6", "xrefs": ["sub_180061500 @ 0x18006155e", "sub_180061500 @ 0x18006151c", "<???> @ 0x18014cf68", "<???> @ 0x1801bd630"], "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"}