{"type": "func", "start": 6443130976, "end": 6443131086, "name": "cocos2d::CCTextureAtlas::~CCTextureAtlas", "pseudocode": "// \n// cocos2d::CCTextureAtlas::~CCTextureAtlas from 0x1800a6060 to 0x1800a60ce (110 bytes)\n// \n// 4 xrefs:\n// > sub_1800A60D0 @ 0x1800a612b\n// > sub_1800A60D0 @ 0x1800a60ec\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7cc8\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::CCTextureAtlas::~CCTextureAtlas(cocos2d::CCTextureAtlas *this)\n{\n  cocos2d::ccV3F_C4B_T2F_Quad *m_pQuads; // rcx\n  GLushort *m_pIndices; // rcx\n  cocos2d::CCTexture2D *m_pTexture; // rcx\n\n  this->__vftable = (cocos2d::CCTextureAtlas_vtbl *)&cocos2d::CCTextureAtlas::`vftable';\n  m_pQuads = this->m_pQuads;\n  if ( m_pQuads )\n  {\n    free(m_pQuads);\n    this->m_pQuads = nullptr;\n  }\n  m_pIndices = this->m_pIndices;\n  if ( m_pIndices )\n  {\n    free(m_pIndices);\n    this->m_pIndices = nullptr;\n  }\n  _glewDeleteBuffers(2, this->m_pBuffersVBO);\n  m_pTexture = this->m_pTexture;\n  if ( m_pTexture )\n    cocos2d::CCObject::release(m_pTexture);\n  cocos2d::CCObject::~CCObject(this);\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::~CCTextureAtlas from 0x1800a6060 to 0x1800a60ce (110 bytes)\n; \n; 4 xrefs:\n; > sub_1800A60D0 @ 0x1800a612b\n; > sub_1800A60D0 @ 0x1800a60ec\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7cc8\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\npush    rbx                                                            ; +0x0, 0x1800a6060\nsub     rsp, 20h                                                       ; +0x2, 0x1800a6062\nmov     rbx, rcx                                                       ; +0x6, 0x1800a6066\nlea     rax, ??_7CCTextureAtlas@cocos2d@@6B@; const cocos2d::CCTextureAtlas::`vftable' ; +0x9, 0x1800a6069\nmov     [rcx], rax                                                     ; +0x10, 0x1800a6070\nmov     rcx, [rcx+60h]; Block                                          ; +0x13, 0x1800a6073\ntest    rcx, rcx                                                       ; +0x17, 0x1800a6077\njz      short loc_1800A608A                                            ; +0x1a, 0x1800a607a\ncall    cs:__imp_free                                                  ; +0x1c, 0x1800a607c\nmov     qword ptr [rbx+60h], 0                                         ; +0x22, 0x1800a6082\nmov     rcx, [rbx+38h]; Block                                          ; +0x2a, 0x1800a608a\ntest    rcx, rcx                                                       ; +0x2e, 0x1800a608e\njz      short loc_1800A60A1                                            ; +0x31, 0x1800a6091\ncall    cs:__imp_free                                                  ; +0x33, 0x1800a6093\nmov     qword ptr [rbx+38h], 0                                         ; +0x39, 0x1800a6099\nlea     rdx, [rbx+40h]                                                 ; +0x41, 0x1800a60a1\nmov     ecx, 2                                                         ; +0x45, 0x1800a60a5\nmov     rax, cs:__glewDeleteBuffers                                    ; +0x4a, 0x1800a60aa\ncall    qword ptr [rax]                                                ; +0x51, 0x1800a60b1\nmov     rcx, [rbx+58h]; this                                           ; +0x53, 0x1800a60b3\ntest    rcx, rcx                                                       ; +0x57, 0x1800a60b7\njz      short loc_1800A60C1                                            ; +0x5a, 0x1800a60ba\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x5c, 0x1800a60bc\nmov     rcx, rbx; this                                                 ; +0x61, 0x1800a60c1\nadd     rsp, 20h                                                       ; +0x64, 0x1800a60c4\npop     rbx                                                            ; +0x68, 0x1800a60c8\njmp     ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x69, 0x1800a60c9", "xrefs": ["sub_1800A60D0 @ 0x1800a612b", "sub_1800A60D0 @ 0x1800a60ec", "<???> @ 0x1801438a8", "<???> @ 0x1801b7cc8"], "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"}