{"type": "func", "start": 6442590112, "end": 6442590196, "name": "sub_180021FA0", "pseudocode": "// \n// sub_180021FA0 from 0x180021fa0 to 0x180021ff4 (84 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e7180\n// > <???> @ 0x1801aeec0\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180021FA0(cocos2d::CCObject *this, char a2)\n{\n  this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCGrabber::`vftable';\n  _glewDeleteFramebuffers(1, this + 1);\n  cocos2d::CCObject::~CCObject(this);\n  if ( (a2 & 1) != 0 )\n    j_j_free_0(this);\n  return this;\n}", "assembly": "; \n; sub_180021FA0 from 0x180021fa0 to 0x180021ff4 (84 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e7180\n; > <???> @ 0x1801aeec0\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, 0x180021fa0\npush    rdi                                                            ; +0x5, 0x180021fa5\nsub     rsp, 20h                                                       ; +0x6, 0x180021fa6\nmov     ebx, edx                                                       ; +0xa, 0x180021faa\nmov     rdi, rcx                                                       ; +0xc, 0x180021fac\nlea     rax, ??_7CCGrabber@cocos2d@@6B@; const cocos2d::CCGrabber::`vftable' ; +0xf, 0x180021faf\nmov     [rcx], rax                                                     ; +0x16, 0x180021fb6\nlea     rdx, [rcx+38h]                                                 ; +0x19, 0x180021fb9\nmov     ecx, 1                                                         ; +0x1d, 0x180021fbd\nmov     rax, cs:__glewDeleteFramebuffers                               ; +0x22, 0x180021fc2\ncall    qword ptr [rax]                                                ; +0x29, 0x180021fc9\nmov     rcx, rdi; this                                                 ; +0x2b, 0x180021fcb\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x2e, 0x180021fce\nnop                                                                    ; +0x33, 0x180021fd3\ntest    bl, 1                                                          ; +0x34, 0x180021fd4\njz      short loc_180021FE6                                            ; +0x37, 0x180021fd7\nmov     edx, 50h ; 'P'                                                 ; +0x39, 0x180021fd9\nmov     rcx, rdi; Block                                                ; +0x3e, 0x180021fde\ncall    j_j_free_0                                                     ; +0x41, 0x180021fe1\nmov     rax, rdi                                                       ; +0x46, 0x180021fe6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x49, 0x180021fe9\nadd     rsp, 20h                                                       ; +0x4e, 0x180021fee\npop     rdi                                                            ; +0x52, 0x180021ff2\nretn                                                                   ; +0x53, 0x180021ff3", "xrefs": ["<???> @ 0x1800e7180", "<???> @ 0x1801aeec0"], "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"}