{"type": "func", "start": 6442516176, "end": 6442516325, "name": "cocos2d::CCString::~CCString", "pseudocode": "// \n// cocos2d::CCString::~CCString from 0x18000fed0 to 0x18000ff65 (149 bytes)\n// \n// 4 xrefs:\n// > sub_18000FFB0 @ 0x18001000b\n// > sub_18000FFB0 @ 0x18000ffcc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae080\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::CCString::~CCString(cocos2d::CCString *this)\n{\n  std::string *p_m_sString; // rax\n  std::size_t m_capacity; // rdx\n  char *m_bigStorage; // rcx\n\n  this->__vftable = (cocos2d::CCString_vtbl *)&cocos2d::CCString::`vftable';\n  p_m_sString = &this->m_sString;\n  this->m_sString.m_data.m_size = 0;\n  if ( this->m_sString.m_data.m_capacity > 0xF )\n    p_m_sString = (std::string *)this->m_sString.m_data.m_bigStorage;\n  p_m_sString->m_data.m_smallStorage._Elems[0] = 0;\n  m_capacity = this->m_sString.m_data.m_capacity;\n  if ( m_capacity > 0xF )\n  {\n    m_bigStorage = this->m_sString.m_data.m_bigStorage;\n    if ( m_capacity + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)&m_bigStorage[-*((_QWORD *)m_bigStorage - 1) - 8] > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      m_bigStorage = *((char **)m_bigStorage - 1);\n    }\n    j_j_free_0(m_bigStorage);\n  }\n  this->m_sString.m_data.m_size = 0;\n  this->m_sString.m_data.m_capacity = 15;\n  this->m_sString.m_data.m_smallStorage._Elems[0] = 0;\n  cocos2d::CCObject::~CCObject(this);\n}", "assembly": "; \n; cocos2d::CCString::~CCString from 0x18000fed0 to 0x18000ff65 (149 bytes)\n; \n; 4 xrefs:\n; > sub_18000FFB0 @ 0x18001000b\n; > sub_18000FFB0 @ 0x18000ffcc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae080\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, 0x18000fed0\npush    rdi                                                            ; +0x5, 0x18000fed5\nsub     rsp, 20h                                                       ; +0x6, 0x18000fed6\nlea     rax, ??_7CCString@cocos2d@@6B@; const cocos2d::CCString::`vftable' ; +0xa, 0x18000feda\nmov     rdi, rcx                                                       ; +0x11, 0x18000fee1\nmov     [rcx], rax                                                     ; +0x14, 0x18000fee4\nlea     rax, [rcx+38h]                                                 ; +0x17, 0x18000fee7\nmov     qword ptr [rcx+48h], 0                                         ; +0x1b, 0x18000feeb\ncmp     qword ptr [rcx+50h], 0Fh                                       ; +0x23, 0x18000fef3\njbe     short loc_18000FEFE                                            ; +0x28, 0x18000fef8\nmov     rax, [rcx+38h]                                                 ; +0x2a, 0x18000fefa\nmov     byte ptr [rax], 0                                              ; +0x2e, 0x18000fefe\nmov     rdx, [rcx+50h]                                                 ; +0x31, 0x18000ff01\ncmp     rdx, 0Fh                                                       ; +0x35, 0x18000ff05\njbe     short loc_18000FF38                                            ; +0x39, 0x18000ff09\nmov     rcx, [rcx+38h]                                                 ; +0x3b, 0x18000ff0b\ninc     rdx                                                            ; +0x3f, 0x18000ff0f\ncmp     rdx, 1000h                                                     ; +0x42, 0x18000ff12\njb      short loc_18000FF33                                            ; +0x49, 0x18000ff19\nmov     r8, [rcx-8]                                                    ; +0x4b, 0x18000ff1b\nadd     rdx, 27h ; '''                                                 ; +0x4f, 0x18000ff1f\nsub     rcx, r8                                                        ; +0x53, 0x18000ff23\nlea     rax, [rcx-8]                                                   ; +0x56, 0x18000ff26\ncmp     rax, 1Fh                                                       ; +0x5a, 0x18000ff2a\nja      short loc_18000FF5E                                            ; +0x5e, 0x18000ff2e\nmov     rcx, r8; Block                                                 ; +0x60, 0x18000ff30\ncall    j_j_free_0                                                     ; +0x63, 0x18000ff33\nmov     rcx, rdi; this                                                 ; +0x68, 0x18000ff38\nmov     qword ptr [rdi+48h], 0                                         ; +0x6b, 0x18000ff3b\nmov     qword ptr [rdi+50h], 0Fh                                       ; +0x73, 0x18000ff43\nmov     byte ptr [rdi+38h], 0                                          ; +0x7b, 0x18000ff4b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7f, 0x18000ff4f\nadd     rsp, 20h                                                       ; +0x84, 0x18000ff54\npop     rdi                                                            ; +0x88, 0x18000ff58\njmp     ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x89, 0x18000ff59\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8e, 0x18000ff5e\ndb 0CCh                                                                ; +0x94, 0x18000ff64", "xrefs": ["sub_18000FFB0 @ 0x18001000b", "sub_18000FFB0 @ 0x18000ffcc", "<???> @ 0x1801438a8", "<???> @ 0x1801ae080"], "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"}