{"type": "func", "start": 6442736416, "end": 6442736610, "name": "cocos2d::CCLabelAtlas::~CCLabelAtlas", "pseudocode": "// \n// cocos2d::CCLabelAtlas::~CCLabelAtlas from 0x180045b20 to 0x180045be2 (194 bytes)\n// \n// 4 xrefs:\n// > sub_180045BF0 @ 0x180045c4e\n// > sub_180045BF0 @ 0x180045c0c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b171c\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::CCLabelAtlas::~CCLabelAtlas(cocos2d::CCLabelAtlas *this)\n{\n  std::string *p_m_sString; // rbx\n  std::string *m_bigStorage; // rax\n  std::size_t m_capacity; // rdx\n  char *v5; // rcx\n\n  p_m_sString = &this->m_sString;\n  this->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLabelAtlas_vtbl *)&cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCNode'};\n  this->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCRGBAProtocol'};\n  this->cocos2d::CCAtlasNode::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCAtlasNode'};\n  this->cocos2d::CCLabelProtocol::__vftable = (cocos2d::CCLabelProtocol_vtbl *)&cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCLabelProtocol'};\n  m_bigStorage = &this->m_sString;\n  this->m_sString.m_data.m_size = 0;\n  if ( this->m_sString.m_data.m_capacity > 0xF )\n    m_bigStorage = (std::string *)p_m_sString->m_data.m_bigStorage;\n  m_bigStorage->m_data.m_smallStorage._Elems[0] = 0;\n  m_capacity = this->m_sString.m_data.m_capacity;\n  if ( m_capacity > 0xF )\n  {\n    v5 = p_m_sString->m_data.m_bigStorage;\n    if ( m_capacity + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)&v5[-*((_QWORD *)v5 - 1) - 8] > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v5 = *((char **)v5 - 1);\n    }\n    j_j_free_0(v5);\n  }\n  p_m_sString->m_data.m_size = 0;\n  p_m_sString->m_data.m_capacity = 15;\n  p_m_sString->m_data.m_smallStorage._Elems[0] = 0;\n  cocos2d::CCAtlasNode::~CCAtlasNode(this);\n}", "assembly": "; \n; cocos2d::CCLabelAtlas::~CCLabelAtlas from 0x180045b20 to 0x180045be2 (194 bytes)\n; \n; 4 xrefs:\n; > sub_180045BF0 @ 0x180045c4e\n; > sub_180045BF0 @ 0x180045c0c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b171c\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, 0x180045b20\npush    rdi                                                            ; +0x5, 0x180045b25\nsub     rsp, 20h                                                       ; +0x6, 0x180045b26\nlea     rbx, [rcx+1A0h]                                                ; +0xa, 0x180045b2a\nmov     rdi, rcx                                                       ; +0x11, 0x180045b31\nlea     rax, ??_7CCLabelAtlas@cocos2d@@6BCCNode@1@@; const cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCNode'} ; +0x14, 0x180045b34\nmov     [rcx], rax                                                     ; +0x1b, 0x180045b3b\nlea     rax, ??_7CCLabelAtlas@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x1e, 0x180045b3e\nmov     [rcx+140h], rax                                                ; +0x25, 0x180045b45\nlea     rax, ??_7CCLabelAtlas@cocos2d@@6BCCAtlasNode@1@@; const cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCAtlasNode'} ; +0x2c, 0x180045b4c\nmov     [rcx+158h], rax                                                ; +0x33, 0x180045b53\nlea     rax, ??_7CCLabelAtlas@cocos2d@@6BCCLabelProtocol@1@@; const cocos2d::CCLabelAtlas::`vftable'{for `cocos2d::CCLabelProtocol'} ; +0x3a, 0x180045b5a\nmov     [rcx+198h], rax                                                ; +0x41, 0x180045b61\nmov     rax, rbx                                                       ; +0x48, 0x180045b68\nmov     qword ptr [rbx+10h], 0                                         ; +0x4b, 0x180045b6b\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x53, 0x180045b73\njbe     short loc_180045B7D                                            ; +0x58, 0x180045b78\nmov     rax, [rbx]                                                     ; +0x5a, 0x180045b7a\nmov     byte ptr [rax], 0                                              ; +0x5d, 0x180045b7d\nmov     rdx, [rbx+18h]                                                 ; +0x60, 0x180045b80\ncmp     rdx, 0Fh                                                       ; +0x64, 0x180045b84\njbe     short loc_180045BB6                                            ; +0x68, 0x180045b88\nmov     rcx, [rbx]                                                     ; +0x6a, 0x180045b8a\ninc     rdx                                                            ; +0x6d, 0x180045b8d\ncmp     rdx, 1000h                                                     ; +0x70, 0x180045b90\njb      short loc_180045BB1                                            ; +0x77, 0x180045b97\nmov     r8, [rcx-8]                                                    ; +0x79, 0x180045b99\nadd     rdx, 27h ; '''                                                 ; +0x7d, 0x180045b9d\nsub     rcx, r8                                                        ; +0x81, 0x180045ba1\nlea     rax, [rcx-8]                                                   ; +0x84, 0x180045ba4\ncmp     rax, 1Fh                                                       ; +0x88, 0x180045ba8\nja      short loc_180045BDB                                            ; +0x8c, 0x180045bac\nmov     rcx, r8; Block                                                 ; +0x8e, 0x180045bae\ncall    j_j_free_0                                                     ; +0x91, 0x180045bb1\nmov     rcx, rdi; this                                                 ; +0x96, 0x180045bb6\nmov     qword ptr [rbx+10h], 0                                         ; +0x99, 0x180045bb9\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0xa1, 0x180045bc1\nmov     byte ptr [rbx], 0                                              ; +0xa9, 0x180045bc9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xac, 0x180045bcc\nadd     rsp, 20h                                                       ; +0xb1, 0x180045bd1\npop     rdi                                                            ; +0xb5, 0x180045bd5\njmp     ??1CCAtlasNode@cocos2d@@UEAA@XZ; cocos2d::CCAtlasNode::~CCAtlasNode(void) ; +0xb6, 0x180045bd6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xbb, 0x180045bdb\ndb 0CCh                                                                ; +0xc1, 0x180045be1", "xrefs": ["sub_180045BF0 @ 0x180045c4e", "sub_180045BF0 @ 0x180045c0c", "<???> @ 0x1801438a8", "<???> @ 0x1801b171c"], "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"}