{"type": "func", "start": 6442591024, "end": 6442591201, "name": "cocos2d::CCTiledGrid3D::~CCTiledGrid3D", "pseudocode": "// \n// cocos2d::CCTiledGrid3D::~CCTiledGrid3D from 0x180022330 to 0x1800223e1 (177 bytes)\n// \n// 4 xrefs:\n// > sub_180022530 @ 0x18002258e\n// > sub_180022530 @ 0x18002254c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aef2c\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\nvoid __fastcall cocos2d::CCTiledGrid3D::~CCTiledGrid3D(cocos2d::CCTiledGrid3D *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::CCTiledGrid3D_vtbl *)&cocos2d::CCTiledGrid3D::`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 + 17);\n  if ( v4 )\n  {\n    free(v4);\n    *((_QWORD *)this + 17) = 0;\n  }\n  v5 = *((void **)this + 18);\n  if ( v5 )\n  {\n    free(v5);\n    *((_QWORD *)this + 18) = 0;\n  }\n  this->__vftable = (cocos2d::CCTiledGrid3D_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::CCTiledGrid3D::~CCTiledGrid3D from 0x180022330 to 0x1800223e1 (177 bytes)\n; \n; 4 xrefs:\n; > sub_180022530 @ 0x18002258e\n; > sub_180022530 @ 0x18002254c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aef2c\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, 0x180022330\npush    rdi                                                            ; +0x5, 0x180022335\nsub     rsp, 20h                                                       ; +0x6, 0x180022336\nmov     rbx, rcx                                                       ; +0xa, 0x18002233a\nlea     rax, ??_7CCTiledGrid3D@cocos2d@@6B@; const cocos2d::CCTiledGrid3D::`vftable' ; +0xd, 0x18002233d\nmov     [rcx], rax                                                     ; +0x14, 0x180022344\nmov     rcx, [rcx+78h]; Block                                          ; +0x17, 0x180022347\nxor     edi, edi                                                       ; +0x1b, 0x18002234b\ntest    rcx, rcx                                                       ; +0x1d, 0x18002234d\njz      short loc_18002235C                                            ; +0x20, 0x180022350\ncall    cs:__imp_free                                                  ; +0x22, 0x180022352\nmov     [rbx+78h], rdi                                                 ; +0x28, 0x180022358\nmov     rcx, [rbx+80h]; Block                                          ; +0x2c, 0x18002235c\ntest    rcx, rcx                                                       ; +0x33, 0x180022363\njz      short loc_180022375                                            ; +0x36, 0x180022366\ncall    cs:__imp_free                                                  ; +0x38, 0x180022368\nmov     [rbx+80h], rdi                                                 ; +0x3e, 0x18002236e\nmov     rcx, [rbx+88h]; Block                                          ; +0x45, 0x180022375\ntest    rcx, rcx                                                       ; +0x4c, 0x18002237c\njz      short loc_18002238E                                            ; +0x4f, 0x18002237f\ncall    cs:__imp_free                                                  ; +0x51, 0x180022381\nmov     [rbx+88h], rdi                                                 ; +0x57, 0x180022387\nmov     rcx, [rbx+90h]; Block                                          ; +0x5e, 0x18002238e\ntest    rcx, rcx                                                       ; +0x65, 0x180022395\njz      short loc_1800223A7                                            ; +0x68, 0x180022398\ncall    cs:__imp_free                                                  ; +0x6a, 0x18002239a\nmov     [rbx+90h], rdi                                                 ; +0x70, 0x1800223a0\nlea     rax, ??_7CCGridBase@cocos2d@@6B@; const cocos2d::CCGridBase::`vftable' ; +0x77, 0x1800223a7\nmov     [rbx], rax                                                     ; +0x7e, 0x1800223ae\nmov     rcx, [rbx+48h]; this                                           ; +0x81, 0x1800223b1\ntest    rcx, rcx                                                       ; +0x85, 0x1800223b5\njz      short loc_1800223BF                                            ; +0x88, 0x1800223b8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8a, 0x1800223ba\nmov     rcx, [rbx+58h]; this                                           ; +0x8f, 0x1800223bf\ntest    rcx, rcx                                                       ; +0x93, 0x1800223c3\njz      short loc_1800223CD                                            ; +0x96, 0x1800223c6\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x98, 0x1800223c8\nmov     rcx, rbx; this                                                 ; +0x9d, 0x1800223cd\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0xa0, 0x1800223d0\nnop                                                                    ; +0xa5, 0x1800223d5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa6, 0x1800223d6\nadd     rsp, 20h                                                       ; +0xab, 0x1800223db\npop     rdi                                                            ; +0xaf, 0x1800223df\nretn                                                                   ; +0xb0, 0x1800223e0", "xrefs": ["sub_180022530 @ 0x18002258e", "sub_180022530 @ 0x18002254c", "<???> @ 0x1801438a8", "<???> @ 0x1801aef2c"], "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"}