{"type": "func", "start": 6442590768, "end": 6442590945, "name": "cocos2d::CCGrid3D::~CCGrid3D", "pseudocode": "// \n// cocos2d::CCGrid3D::~CCGrid3D from 0x180022230 to 0x1800222e1 (177 bytes)\n// \n// 4 xrefs:\n// > sub_1800223F0 @ 0x18002244e\n// > sub_1800223F0 @ 0x18002240c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aef14\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\nvoid __fastcall cocos2d::CCGrid3D::~CCGrid3D(cocos2d::CCGrid3D *this)\n{\n  void *v2; // rcx\n  void *v3; // rcx\n  void *v4; // rcx\n  void *v5; // rcx\n  cocos2d::CCTexture2D *m_pTexture; // rcx\n  cocos2d::CCGrabber *m_pGrabber; // rcx\n\n  this->__vftable = (cocos2d::CCGrid3D_vtbl *)&cocos2d::CCGrid3D::`vftable';\n  v2 = *((void **)this + 15);\n  if ( v2 )\n  {\n    free(v2);\n    *((_QWORD *)this + 15) = 0;\n  }\n  v3 = *((void **)this + 16);\n  if ( v3 )\n  {\n    free(v3);\n    *((_QWORD *)this + 16) = 0;\n  }\n  v4 = *((void **)this + 18);\n  if ( v4 )\n  {\n    free(v4);\n    *((_QWORD *)this + 18) = 0;\n  }\n  v5 = *((void **)this + 17);\n  if ( v5 )\n  {\n    free(v5);\n    *((_QWORD *)this + 17) = 0;\n  }\n  this->__vftable = (cocos2d::CCGrid3D_vtbl *)&cocos2d::CCGridBase::`vftable';\n  m_pTexture = this->m_pTexture;\n  if ( m_pTexture )\n    cocos2d::CCObject::release(m_pTexture);\n  m_pGrabber = this->m_pGrabber;\n  if ( m_pGrabber )\n    cocos2d::CCObject::release(m_pGrabber);\n  cocos2d::CCObject::~CCObject(this);\n}", "assembly": "; \n; cocos2d::CCGrid3D::~CCGrid3D from 0x180022230 to 0x1800222e1 (177 bytes)\n; \n; 4 xrefs:\n; > sub_1800223F0 @ 0x18002244e\n; > sub_1800223F0 @ 0x18002240c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aef14\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, 0x180022230\npush    rdi                                                            ; +0x5, 0x180022235\nsub     rsp, 20h                                                       ; +0x6, 0x180022236\nmov     rbx, rcx                                                       ; +0xa, 0x18002223a\nlea     rax, ??_7CCGrid3D@cocos2d@@6B@; const cocos2d::CCGrid3D::`vftable' ; +0xd, 0x18002223d\nmov     [rcx], rax                                                     ; +0x14, 0x180022244\nmov     rcx, [rcx+78h]; Block                                          ; +0x17, 0x180022247\nxor     edi, edi                                                       ; +0x1b, 0x18002224b\ntest    rcx, rcx                                                       ; +0x1d, 0x18002224d\njz      short loc_18002225C                                            ; +0x20, 0x180022250\ncall    cs:__imp_free                                                  ; +0x22, 0x180022252\nmov     [rbx+78h], rdi                                                 ; +0x28, 0x180022258\nmov     rcx, [rbx+80h]; Block                                          ; +0x2c, 0x18002225c\ntest    rcx, rcx                                                       ; +0x33, 0x180022263\njz      short loc_180022275                                            ; +0x36, 0x180022266\ncall    cs:__imp_free                                                  ; +0x38, 0x180022268\nmov     [rbx+80h], rdi                                                 ; +0x3e, 0x18002226e\nmov     rcx, [rbx+90h]; Block                                          ; +0x45, 0x180022275\ntest    rcx, rcx                                                       ; +0x4c, 0x18002227c\njz      short loc_18002228E                                            ; +0x4f, 0x18002227f\ncall    cs:__imp_free                                                  ; +0x51, 0x180022281\nmov     [rbx+90h], rdi                                                 ; +0x57, 0x180022287\nmov     rcx, [rbx+88h]; Block                                          ; +0x5e, 0x18002228e\ntest    rcx, rcx                                                       ; +0x65, 0x180022295\njz      short loc_1800222A7                                            ; +0x68, 0x180022298\ncall    cs:__imp_free                                                  ; +0x6a, 0x18002229a\nmov     [rbx+88h], rdi                                                 ; +0x70, 0x1800222a0\nlea     rax, ??_7CCGridBase@cocos2d@@6B@; const cocos2d::CCGridBase::`vftable' ; +0x77, 0x1800222a7\nmov     [rbx], rax                                                     ; +0x7e, 0x1800222ae\nmov     rcx, [rbx+48h]; this                                           ; +0x81, 0x1800222b1\ntest    rcx, rcx                                                       ; +0x85, 0x1800222b5\njz      short loc_1800222BF                                            ; +0x88, 0x1800222b8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8a, 0x1800222ba\nmov     rcx, [rbx+58h]; this                                           ; +0x8f, 0x1800222bf\ntest    rcx, rcx                                                       ; +0x93, 0x1800222c3\njz      short loc_1800222CD                                            ; +0x96, 0x1800222c6\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x98, 0x1800222c8\nmov     rcx, rbx; this                                                 ; +0x9d, 0x1800222cd\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0xa0, 0x1800222d0\nnop                                                                    ; +0xa5, 0x1800222d5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa6, 0x1800222d6\nadd     rsp, 20h                                                       ; +0xab, 0x1800222db\npop     rdi                                                            ; +0xaf, 0x1800222df\nretn                                                                   ; +0xb0, 0x1800222e0", "xrefs": ["sub_1800223F0 @ 0x18002244e", "sub_1800223F0 @ 0x18002240c", "<???> @ 0x1801438a8", "<???> @ 0x1801aef14"], "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"}