{"type": "func", "start": 6442742768, "end": 6442743118, "name": "cocos2d::CCLabelBMFont::~CCLabelBMFont", "pseudocode": "// \n// cocos2d::CCLabelBMFont::~CCLabelBMFont from 0x1800473f0 to 0x18004754e (350 bytes)\n// \n// 4 xrefs:\n// > sub_180047670 @ 0x1800476ce\n// > sub_180047670 @ 0x18004768c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1854\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::CCLabelBMFont::~CCLabelBMFont(cocos2d::CCLabelBMFont *this)\n{\n  cocos2d::CCSprite *m_pReusedChar; // rcx\n  unsigned __int16 *m_sString; // rcx\n  unsigned __int16 *m_sInitialString; // rcx\n  cocos2d::CCBMFontConfiguration *m_pConfiguration; // rcx\n  std::size_t m_capacity; // rdx\n  char *m_bigStorage; // rcx\n  std::size_t v8; // rdx\n  char *v9; // rcx\n\n  this->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLabelBMFont_vtbl *)&cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCNode'};\n  this->cocos2d::CCSpriteBatchNode::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCTextureProtocol'};\n  this->cocos2d::CCLabelProtocol::__vftable = (cocos2d::CCLabelProtocol_vtbl *)&cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCLabelProtocol'};\n  this->cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCRGBAProtocol'};\n  m_pReusedChar = this->m_pReusedChar;\n  if ( m_pReusedChar )\n    cocos2d::CCObject::release(m_pReusedChar);\n  m_sString = this->m_sString;\n  if ( m_sString )\n  {\n    j_j_free_0(m_sString);\n    this->m_sString = nullptr;\n  }\n  m_sInitialString = this->m_sInitialString;\n  if ( m_sInitialString )\n  {\n    j_j_free_0(m_sInitialString);\n    this->m_sInitialString = nullptr;\n  }\n  m_pConfiguration = this->m_pConfiguration;\n  if ( m_pConfiguration )\n    cocos2d::CCObject::release(m_pConfiguration);\n  m_capacity = this->m_sInitialStringUTF8.m_data.m_capacity;\n  if ( m_capacity > 0xF )\n  {\n    m_bigStorage = this->m_sInitialStringUTF8.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_20;\n      m_bigStorage = *((char **)m_bigStorage - 1);\n    }\n    j_j_free_0(m_bigStorage);\n  }\n  this->m_sInitialStringUTF8.m_data.m_size = 0;\n  this->m_sInitialStringUTF8.m_data.m_capacity = 15;\n  this->m_sInitialStringUTF8.m_data.m_smallStorage._Elems[0] = 0;\n  v8 = this->m_sFntFile.m_data.m_capacity;\n  if ( v8 > 0xF )\n  {\n    v9 = this->m_sFntFile.m_data.m_bigStorage;\n    if ( v8 + 1 < 0x1000 )\n    {\nLABEL_18:\n      j_j_free_0(v9);\n      goto LABEL_19;\n    }\n    if ( (unsigned __int64)&v9[-*((_QWORD *)v9 - 1) - 8] <= 0x1F )\n    {\n      v9 = *((char **)v9 - 1);\n      goto LABEL_18;\n    }\nLABEL_20:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_19:\n  this->m_sFntFile.m_data.m_size = 0;\n  this->m_sFntFile.m_data.m_capacity = 15;\n  this->m_sFntFile.m_data.m_smallStorage._Elems[0] = 0;\n  cocos2d::CCSpriteBatchNode::~CCSpriteBatchNode(this);\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::~CCLabelBMFont from 0x1800473f0 to 0x18004754e (350 bytes)\n; \n; 4 xrefs:\n; > sub_180047670 @ 0x1800476ce\n; > sub_180047670 @ 0x18004768c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1854\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, 0x1800473f0\npush    rdi                                                            ; +0x5, 0x1800473f5\nsub     rsp, 20h                                                       ; +0x6, 0x1800473f6\nmov     rbx, rcx                                                       ; +0xa, 0x1800473fa\nlea     rax, ??_7CCLabelBMFont@cocos2d@@6BCCNode@1@@; const cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCNode'} ; +0xd, 0x1800473fd\nmov     [rcx], rax                                                     ; +0x14, 0x180047404\nlea     rax, ??_7CCLabelBMFont@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x17, 0x180047407\nmov     [rcx+140h], rax                                                ; +0x1e, 0x18004740e\nlea     rax, ??_7CCLabelBMFont@cocos2d@@6BCCLabelProtocol@1@@; const cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCLabelProtocol'} ; +0x25, 0x180047415\nmov     [rcx+168h], rax                                                ; +0x2c, 0x18004741c\nlea     rax, ??_7CCLabelBMFont@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCLabelBMFont::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x33, 0x180047423\nmov     [rcx+170h], rax                                                ; +0x3a, 0x18004742a\nmov     rcx, [rcx+1E8h]; this                                          ; +0x41, 0x180047431\ntest    rcx, rcx                                                       ; +0x48, 0x180047438\njz      short loc_180047442                                            ; +0x4b, 0x18004743b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x4d, 0x18004743d\nmov     rcx, [rbx+178h]; Block                                         ; +0x52, 0x180047442\nxor     edi, edi                                                       ; +0x59, 0x180047449\ntest    rcx, rcx                                                       ; +0x5b, 0x18004744b\njz      short loc_18004745C                                            ; +0x5e, 0x18004744e\ncall    j_j_free_0                                                     ; +0x60, 0x180047450\nmov     [rbx+178h], rdi                                                ; +0x65, 0x180047455\nmov     rcx, [rbx+1A0h]; Block                                         ; +0x6c, 0x18004745c\ntest    rcx, rcx                                                       ; +0x73, 0x180047463\njz      short loc_180047474                                            ; +0x76, 0x180047466\ncall    j_j_free_0                                                     ; +0x78, 0x180047468\nmov     [rbx+1A0h], rdi                                                ; +0x7d, 0x18004746d\nmov     rcx, [rbx+1D0h]; this                                          ; +0x84, 0x180047474\ntest    rcx, rcx                                                       ; +0x8b, 0x18004747b\njz      short loc_180047485                                            ; +0x8e, 0x18004747e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x90, 0x180047480\nmov     rdx, [rbx+1C0h]                                                ; +0x95, 0x180047485\ncmp     rdx, 0Fh                                                       ; +0x9c, 0x18004748c\njbe     short loc_1800474C6                                            ; +0xa0, 0x180047490\ninc     rdx                                                            ; +0xa2, 0x180047492\nmov     rcx, [rbx+1A8h]                                                ; +0xa5, 0x180047495\ncmp     rdx, 1000h                                                     ; +0xac, 0x18004749c\njb      short loc_1800474C1                                            ; +0xb3, 0x1800474a3\nadd     rdx, 27h ; '''                                                 ; +0xb5, 0x1800474a5\nmov     r8, [rcx-8]                                                    ; +0xb9, 0x1800474a9\nsub     rcx, r8                                                        ; +0xbd, 0x1800474ad\nlea     rax, [rcx-8]                                                   ; +0xc0, 0x1800474b0\ncmp     rax, 1Fh                                                       ; +0xc4, 0x1800474b4\nja      loc_180047547                                                  ; +0xc8, 0x1800474b8\nmov     rcx, r8; Block                                                 ; +0xce, 0x1800474be\ncall    j_j_free_0                                                     ; +0xd1, 0x1800474c1\nmov     [rbx+1B8h], rdi                                                ; +0xd6, 0x1800474c6\nmov     qword ptr [rbx+1C0h], 0Fh                                      ; +0xdd, 0x1800474cd\nmov     [rbx+1A8h], dil                                                ; +0xe8, 0x1800474d8\nmov     rdx, [rbx+198h]                                                ; +0xef, 0x1800474df\ncmp     rdx, 0Fh                                                       ; +0xf6, 0x1800474e6\njbe     short loc_18004751C                                            ; +0xfa, 0x1800474ea\ninc     rdx                                                            ; +0xfc, 0x1800474ec\nmov     rcx, [rbx+180h]                                                ; +0xff, 0x1800474ef\ncmp     rdx, 1000h                                                     ; +0x106, 0x1800474f6\njb      short loc_180047517                                            ; +0x10d, 0x1800474fd\nadd     rdx, 27h ; '''                                                 ; +0x10f, 0x1800474ff\nmov     r8, [rcx-8]                                                    ; +0x113, 0x180047503\nsub     rcx, r8                                                        ; +0x117, 0x180047507\nlea     rax, [rcx-8]                                                   ; +0x11a, 0x18004750a\ncmp     rax, 1Fh                                                       ; +0x11e, 0x18004750e\nja      short loc_180047547                                            ; +0x122, 0x180047512\nmov     rcx, r8; Block                                                 ; +0x124, 0x180047514\ncall    j_j_free_0                                                     ; +0x127, 0x180047517\nmov     [rbx+190h], rdi                                                ; +0x12c, 0x18004751c\nmov     qword ptr [rbx+198h], 0Fh                                      ; +0x133, 0x180047523\nmov     [rbx+180h], dil                                                ; +0x13e, 0x18004752e\nmov     rcx, rbx; this                                                 ; +0x145, 0x180047535\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x148, 0x180047538\nadd     rsp, 20h                                                       ; +0x14d, 0x18004753d\npop     rdi                                                            ; +0x151, 0x180047541\njmp     ??1CCSpriteBatchNode@cocos2d@@UEAA@XZ; cocos2d::CCSpriteBatchNode::~CCSpriteBatchNode(void) ; +0x152, 0x180047542\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x157, 0x180047547\ndb 0CCh                                                                ; +0x15d, 0x18004754d", "xrefs": ["sub_180047670 @ 0x1800476ce", "sub_180047670 @ 0x18004768c", "<???> @ 0x1801438a8", "<???> @ 0x1801b1854"], "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"}