{"type": "func", "start": 6442768256, "end": 6442768549, "name": "cocos2d::CCLabelTTF::~CCLabelTTF", "pseudocode": "// \n// cocos2d::CCLabelTTF::~CCLabelTTF from 0x18004d780 to 0x18004d8a5 (293 bytes)\n// \n// 7 xrefs:\n// > sub_18004D8B0 @ 0x18004d90e\n// > cocos2d::CCTextFieldTTF::~CCTextFieldTTF @ 0x1800b508c\n// > sub_1800E37B0 @ 0x1800e37b7\n// > sub_18004D8B0 @ 0x18004d8cc\n// > <???> @ 0x1801412e7\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1bd8\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::CCLabelTTF::~CCLabelTTF(cocos2d::CCLabelTTF *this)\n{\n  std::string *m_pFontName; // rdi\n  unsigned __int64 m_capacity; // rdx\n  char *m_bigStorage; // rcx\n  std::size_t v5; // rdx\n  char *v6; // rcx\n\n  m_pFontName = this->m_pFontName;\n  this->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLabelTTF_vtbl *)&cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCNode'};\n  this->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCRGBAProtocol'};\n  this->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCSprite'};\n  this->cocos2d::CCLabelProtocol::__vftable = (cocos2d::CCLabelProtocol_vtbl *)&cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCLabelProtocol'};\n  if ( m_pFontName )\n  {\n    m_capacity = m_pFontName->m_data.m_capacity;\n    if ( m_capacity > 0xF )\n    {\n      m_bigStorage = m_pFontName->m_data.m_bigStorage;\n      if ( m_capacity + 1 >= 0x1000 )\n      {\n        if ( (unsigned __int64)&m_bigStorage[-*((_QWORD *)m_bigStorage - 1) - 8] > 0x1F )\n          goto LABEL_14;\n        m_bigStorage = *((char **)m_bigStorage - 1);\n      }\n      j_j_free_0(m_bigStorage);\n    }\n    m_pFontName->m_data.m_size = 0;\n    m_pFontName->m_data.m_capacity = 15;\n    m_pFontName->m_data.m_smallStorage._Elems[0] = 0;\n    j_j_free_0(m_pFontName);\n    this->m_pFontName = nullptr;\n  }\n  v5 = this->m_string.m_data.m_capacity;\n  if ( v5 > 0xF )\n  {\n    v6 = this->m_string.m_data.m_bigStorage;\n    if ( v5 + 1 < 0x1000 )\n    {\nLABEL_12:\n      j_j_free_0(v6);\n      goto LABEL_13;\n    }\n    if ( (unsigned __int64)&v6[-*((_QWORD *)v6 - 1) - 8] <= 0x1F )\n    {\n      v6 = *((char **)v6 - 1);\n      goto LABEL_12;\n    }\nLABEL_14:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_13:\n  this->m_string.m_data.m_size = 0;\n  this->m_string.m_data.m_capacity = 15;\n  this->m_string.m_data.m_smallStorage._Elems[0] = 0;\n  cocos2d::CCSprite::~CCSprite(this);\n}", "assembly": "; \n; cocos2d::CCLabelTTF::~CCLabelTTF from 0x18004d780 to 0x18004d8a5 (293 bytes)\n; \n; 7 xrefs:\n; > sub_18004D8B0 @ 0x18004d90e\n; > cocos2d::CCTextFieldTTF::~CCTextFieldTTF @ 0x1800b508c\n; > sub_1800E37B0 @ 0x1800e37b7\n; > sub_18004D8B0 @ 0x18004d8cc\n; > <???> @ 0x1801412e7\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1bd8\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, 0x18004d780\npush    rdi                                                            ; +0x5, 0x18004d785\nsub     rsp, 20h                                                       ; +0x6, 0x18004d786\nmov     rdi, [rcx+270h]                                                ; +0xa, 0x18004d78a\nlea     rax, ??_7CCLabelTTF@cocos2d@@6BCCNode@1@@; const cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCNode'} ; +0x11, 0x18004d791\nmov     [rcx], rax                                                     ; +0x18, 0x18004d798\nlea     rax, ??_7CCLabelTTF@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x1b, 0x18004d79b\nmov     [rcx+140h], rax                                                ; +0x22, 0x18004d7a2\nlea     rax, ??_7CCLabelTTF@cocos2d@@6BCCSprite@1@@; const cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCSprite'} ; +0x29, 0x18004d7a9\nmov     [rcx+158h], rax                                                ; +0x30, 0x18004d7b0\nlea     rax, ??_7CCLabelTTF@cocos2d@@6BCCLabelProtocol@1@@; const cocos2d::CCLabelTTF::`vftable'{for `cocos2d::CCLabelProtocol'} ; +0x37, 0x18004d7b7\nmov     [rcx+258h], rax                                                ; +0x3e, 0x18004d7be\nmov     rbx, rcx                                                       ; +0x45, 0x18004d7c5\ntest    rdi, rdi                                                       ; +0x48, 0x18004d7c8\njz      short loc_18004D832                                            ; +0x4b, 0x18004d7cb\nmov     rdx, [rdi+18h]                                                 ; +0x4d, 0x18004d7cd\ncmp     rdx, 0Fh                                                       ; +0x51, 0x18004d7d1\njbe     short loc_18004D807                                            ; +0x55, 0x18004d7d5\nmov     rcx, [rdi]                                                     ; +0x57, 0x18004d7d7\ninc     rdx                                                            ; +0x5a, 0x18004d7da\ncmp     rdx, 1000h                                                     ; +0x5d, 0x18004d7dd\njb      short loc_18004D802                                            ; +0x64, 0x18004d7e4\nmov     r8, [rcx-8]                                                    ; +0x66, 0x18004d7e6\nadd     rdx, 27h ; '''                                                 ; +0x6a, 0x18004d7ea\nsub     rcx, r8                                                        ; +0x6e, 0x18004d7ee\nlea     rax, [rcx-8]                                                   ; +0x71, 0x18004d7f1\ncmp     rax, 1Fh                                                       ; +0x75, 0x18004d7f5\nja      loc_18004D89E                                                  ; +0x79, 0x18004d7f9\nmov     rcx, r8; Block                                                 ; +0x7f, 0x18004d7ff\ncall    j_j_free_0                                                     ; +0x82, 0x18004d802\nmov     edx, 20h ; ' '                                                 ; +0x87, 0x18004d807\nmov     qword ptr [rdi+10h], 0                                         ; +0x8c, 0x18004d80c\nmov     rcx, rdi; Block                                                ; +0x94, 0x18004d814\nmov     qword ptr [rdi+18h], 0Fh                                       ; +0x97, 0x18004d817\nmov     byte ptr [rdi], 0                                              ; +0x9f, 0x18004d81f\ncall    j_j_free_0                                                     ; +0xa2, 0x18004d822\nmov     qword ptr [rbx+270h], 0                                        ; +0xa7, 0x18004d827\nmov     rdx, [rbx+298h]                                                ; +0xb2, 0x18004d832\ncmp     rdx, 0Fh                                                       ; +0xb9, 0x18004d839\njbe     short loc_18004D86F                                            ; +0xbd, 0x18004d83d\nmov     rcx, [rbx+280h]                                                ; +0xbf, 0x18004d83f\ninc     rdx                                                            ; +0xc6, 0x18004d846\ncmp     rdx, 1000h                                                     ; +0xc9, 0x18004d849\njb      short loc_18004D86A                                            ; +0xd0, 0x18004d850\nmov     r8, [rcx-8]                                                    ; +0xd2, 0x18004d852\nadd     rdx, 27h ; '''                                                 ; +0xd6, 0x18004d856\nsub     rcx, r8                                                        ; +0xda, 0x18004d85a\nlea     rax, [rcx-8]                                                   ; +0xdd, 0x18004d85d\ncmp     rax, 1Fh                                                       ; +0xe1, 0x18004d861\nja      short loc_18004D89E                                            ; +0xe5, 0x18004d865\nmov     rcx, r8; Block                                                 ; +0xe7, 0x18004d867\ncall    j_j_free_0                                                     ; +0xea, 0x18004d86a\nmov     rcx, rbx; this                                                 ; +0xef, 0x18004d86f\nmov     qword ptr [rbx+290h], 0                                        ; +0xf2, 0x18004d872\nmov     qword ptr [rbx+298h], 0Fh                                      ; +0xfd, 0x18004d87d\nmov     byte ptr [rbx+280h], 0                                         ; +0x108, 0x18004d888\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10f, 0x18004d88f\nadd     rsp, 20h                                                       ; +0x114, 0x18004d894\npop     rdi                                                            ; +0x118, 0x18004d898\njmp     ??1CCSprite@cocos2d@@UEAA@XZ; cocos2d::CCSprite::~CCSprite(void) ; +0x119, 0x18004d899\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x11e, 0x18004d89e\ndb 0CCh                                                                ; +0x124, 0x18004d8a4", "xrefs": ["sub_18004D8B0 @ 0x18004d90e", "cocos2d::CCTextFieldTTF::~CCTextFieldTTF @ 0x1800b508c", "sub_1800E37B0 @ 0x1800e37b7", "sub_18004D8B0 @ 0x18004d8cc", "<???> @ 0x1801412e7", "<???> @ 0x1801438a8", "<???> @ 0x1801b1bd8"], "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"}