{"type": "func", "start": 6442742448, "end": 6442742746, "name": "cocos2d::CCBMFontConfiguration::~CCBMFontConfiguration", "pseudocode": "// \n// cocos2d::CCBMFontConfiguration::~CCBMFontConfiguration from 0x1800472b0 to 0x1800473da (298 bytes)\n// \n// 6 xrefs:\n// > sub_180047550 @ 0x1800475ae\n// > sub_180047550 @ 0x18004756c\n// > <???> @ 0x1801374d4\n// > <???> @ 0x180137508\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1818\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::CCBMFontConfiguration::~CCBMFontConfiguration(cocos2d::CCBMFontConfiguration *this)\n{\n  std::string *p_m_sAtlasName; // rax\n  std::set<unsigned int> *m_pCharacterSet; // rsi\n  std::_Tree_node<unsigned int, void *>::_Nodeptr Parent; // rbx\n  std::_Tree_node<unsigned int, void *>::_Nodeptr v5; // rcx\n  std::size_t m_capacity; // rdx\n  char *m_bigStorage; // rcx\n\n  this->__vftable = (cocos2d::CCBMFontConfiguration_vtbl *)&cocos2d::CCBMFontConfiguration::`vftable';\n  cocos2d::CCBMFontConfiguration::purgeFontDefDictionary(this);\n  cocos2d::CCBMFontConfiguration::purgeKerningDictionary(this);\n  this->m_sAtlasName.m_data.m_size = 0;\n  p_m_sAtlasName = &this->m_sAtlasName;\n  if ( this->m_sAtlasName.m_data.m_capacity > 0xF )\n    p_m_sAtlasName = (std::string *)this->m_sAtlasName.m_data.m_bigStorage;\n  p_m_sAtlasName->m_data.m_smallStorage._Elems[0] = 0;\n  m_pCharacterSet = this->m_pCharacterSet;\n  if ( m_pCharacterSet )\n  {\n    Parent = m_pCharacterSet->_Mypair._Myval2._Myval2._Myhead->_Parent;\n    while ( !Parent->_Isnil )\n    {\n      sub_180046C20((__int64)m_pCharacterSet, (__int64)m_pCharacterSet, (__int64)Parent->_Right);\n      v5 = Parent;\n      Parent = Parent->_Left;\n      j_j_free_0(v5);\n    }\n    j_j_free_0(m_pCharacterSet->_Mypair._Myval2._Myval2._Myhead);\n    j_j_free_0(m_pCharacterSet);\n    this->m_pCharacterSet = nullptr;\n  }\n  m_capacity = this->m_sAtlasName.m_data.m_capacity;\n  if ( m_capacity > 0xF )\n  {\n    m_bigStorage = this->m_sAtlasName.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_sAtlasName.m_data.m_size = 0;\n  this->m_sAtlasName.m_data.m_capacity = 15;\n  this->m_sAtlasName.m_data.m_smallStorage._Elems[0] = 0;\n  cocos2d::CCObject::~CCObject(this);\n}", "assembly": "; \n; cocos2d::CCBMFontConfiguration::~CCBMFontConfiguration from 0x1800472b0 to 0x1800473da (298 bytes)\n; \n; 6 xrefs:\n; > sub_180047550 @ 0x1800475ae\n; > sub_180047550 @ 0x18004756c\n; > <???> @ 0x1801374d4\n; > <???> @ 0x180137508\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1818\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_10], rdi                                              ; +0x0, 0x1800472b0\npush    r14                                                            ; +0x5, 0x1800472b5\nsub     rsp, 20h                                                       ; +0x7, 0x1800472b7\nlea     rax, ??_7CCBMFontConfiguration@cocos2d@@6B@; const cocos2d::CCBMFontConfiguration::`vftable' ; +0xb, 0x1800472bb\nmov     [rsp+28h+arg_8], rsi                                           ; +0x12, 0x1800472c2\nmov     [rcx], rax                                                     ; +0x17, 0x1800472c7\nmov     r14, rcx                                                       ; +0x1a, 0x1800472ca\ncall    ?purgeFontDefDictionary@CCBMFontConfiguration@cocos2d@@AEAAXXZ; cocos2d::CCBMFontConfiguration::purgeFontDefDictionary(void) ; +0x1d, 0x1800472cd\nmov     rcx, r14; this                                                 ; +0x22, 0x1800472d2\ncall    ?purgeKerningDictionary@CCBMFontConfiguration@cocos2d@@AEAAXXZ; cocos2d::CCBMFontConfiguration::purgeKerningDictionary(void) ; +0x25, 0x1800472d5\nmov     qword ptr [r14+68h], 0                                         ; +0x2a, 0x1800472da\nlea     rax, [r14+58h]                                                 ; +0x32, 0x1800472e2\ncmp     qword ptr [r14+70h], 0Fh                                       ; +0x36, 0x1800472e6\njbe     short loc_1800472F1                                            ; +0x3b, 0x1800472eb\nmov     rax, [r14+58h]                                                 ; +0x3d, 0x1800472ed\nmov     byte ptr [rax], 0                                              ; +0x41, 0x1800472f1\nmov     rsi, [r14+80h]                                                 ; +0x44, 0x1800472f4\ntest    rsi, rsi                                                       ; +0x4b, 0x1800472fb\njz      short loc_18004736F                                            ; +0x4e, 0x1800472fe\nmov     rax, [rsi]                                                     ; +0x50, 0x180047300\nmov     [rsp+28h+arg_0], rbx                                           ; +0x53, 0x180047303\nmov     rbx, [rax+8]                                                   ; +0x58, 0x180047308\ncmp     byte ptr [rbx+19h], 0                                          ; +0x5c, 0x18004730c\njnz     short loc_180047345                                            ; +0x60, 0x180047310\nnop     dword ptr [rax+00h]                                            ; +0x62, 0x180047312\nnop     word ptr [rax+rax+00000000h]                                   ; +0x66, 0x180047316\nmov     r8, [rbx+10h]                                                  ; +0x70, 0x180047320\nmov     rdx, rsi                                                       ; +0x74, 0x180047324\nmov     rcx, rsi                                                       ; +0x77, 0x180047327\ncall    sub_180046C20                                                  ; +0x7a, 0x18004732a\nmov     rcx, rbx; Block                                                ; +0x7f, 0x18004732f\nmov     edx, 20h ; ' '                                                 ; +0x82, 0x180047332\nmov     rbx, [rbx]                                                     ; +0x87, 0x180047337\ncall    j_j_free_0                                                     ; +0x8a, 0x18004733a\ncmp     byte ptr [rbx+19h], 0                                          ; +0x8f, 0x18004733f\njz      short loc_180047320                                            ; +0x93, 0x180047343\nmov     rcx, [rsi]; Block                                              ; +0x95, 0x180047345\nmov     edx, 20h ; ' '                                                 ; +0x98, 0x180047348\ncall    j_j_free_0                                                     ; +0x9d, 0x18004734d\nmov     edx, 10h                                                       ; +0xa2, 0x180047352\nmov     rcx, rsi; Block                                                ; +0xa7, 0x180047357\ncall    j_j_free_0                                                     ; +0xaa, 0x18004735a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xaf, 0x18004735f\nmov     qword ptr [r14+80h], 0                                         ; +0xb4, 0x180047364\nmov     rdx, [r14+70h]                                                 ; +0xbf, 0x18004736f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xc3, 0x180047373\ncmp     rdx, 0Fh                                                       ; +0xc8, 0x180047378\njbe     short loc_1800473AB                                            ; +0xcc, 0x18004737c\nmov     rcx, [r14+58h]                                                 ; +0xce, 0x18004737e\ninc     rdx                                                            ; +0xd2, 0x180047382\ncmp     rdx, 1000h                                                     ; +0xd5, 0x180047385\njb      short loc_1800473A6                                            ; +0xdc, 0x18004738c\nmov     r8, [rcx-8]                                                    ; +0xde, 0x18004738e\nadd     rdx, 27h ; '''                                                 ; +0xe2, 0x180047392\nsub     rcx, r8                                                        ; +0xe6, 0x180047396\nlea     rax, [rcx-8]                                                   ; +0xe9, 0x180047399\ncmp     rax, 1Fh                                                       ; +0xed, 0x18004739d\nja      short loc_1800473D3                                            ; +0xf1, 0x1800473a1\nmov     rcx, r8; Block                                                 ; +0xf3, 0x1800473a3\ncall    j_j_free_0                                                     ; +0xf6, 0x1800473a6\nmov     rcx, r14; this                                                 ; +0xfb, 0x1800473ab\nmov     qword ptr [r14+68h], 0                                         ; +0xfe, 0x1800473ae\nmov     qword ptr [r14+70h], 0Fh                                       ; +0x106, 0x1800473b6\nmov     byte ptr [r14+58h], 0                                          ; +0x10e, 0x1800473be\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x113, 0x1800473c3\nadd     rsp, 20h                                                       ; +0x118, 0x1800473c8\npop     r14                                                            ; +0x11c, 0x1800473cc\njmp     ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x11e, 0x1800473ce\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x123, 0x1800473d3\ndb 0CCh                                                                ; +0x129, 0x1800473d9", "xrefs": ["sub_180047550 @ 0x1800475ae", "sub_180047550 @ 0x18004756c", "<???> @ 0x1801374d4", "<???> @ 0x180137508", "<???> @ 0x1801438a8", "<???> @ 0x1801b1818"], "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"}