{"type": "func", "start": 6443233360, "end": 6443233574, "name": "cocos2d::CCDirector::removeStatsLabel", "pseudocode": "// \n// cocos2d::CCDirector::removeStatsLabel from 0x1800bf050 to 0x1800bf126 (214 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b927c\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\n// Hidden C++ exception states: #wind=2\nvoid __fastcall cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *this)\n{\n  cocos2d::CCLabelAtlas *m_pFPSLabel; // rcx\n  cocos2d::CCLabelAtlas *m_pSPFLabel; // rcx\n  cocos2d::CCLabelAtlas *m_pDrawsLabel; // rcx\n  cocos2d::CCTextureCache *v5; // rax\n  _QWORD *v6; // rdi\n  cocos2d::CCLabelBMFont *m_pFPSNode; // rcx\n  _QWORD v8[7]; // [rsp+20h] [rbp-38h] BYREF\n  int v9; // [rsp+70h] [rbp+18h] BYREF\n\n  m_pFPSLabel = this->m_pFPSLabel;\n  if ( m_pFPSLabel && this->m_pSPFLabel )\n  {\n    cocos2d::CCObject::release(m_pFPSLabel);\n    this->m_pFPSLabel = nullptr;\n    m_pSPFLabel = this->m_pSPFLabel;\n    if ( m_pSPFLabel )\n    {\n      cocos2d::CCObject::release(m_pSPFLabel);\n      this->m_pSPFLabel = nullptr;\n    }\n    m_pDrawsLabel = this->m_pDrawsLabel;\n    if ( m_pDrawsLabel )\n    {\n      cocos2d::CCObject::release(m_pDrawsLabel);\n      this->m_pDrawsLabel = nullptr;\n    }\n    v5 = cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v5, \"cc_fps_images\");\n  }\n  v6 = sub_180005910(v8, Buf2);\n  cocos2d::cc_timeval::operator=(&v9, dword_1801A9B30);\n  m_pFPSNode = this->m_pFPSNode;\n  if ( m_pFPSNode )\n  {\n    cocos2d::CCObject::release(m_pFPSNode);\n    this->m_pFPSNode = nullptr;\n  }\n  this->m_bDisplayFPS = 0;\n  sub_180005B70((__int64)v6);\n}", "assembly": "; \n; cocos2d::CCDirector::removeStatsLabel from 0x1800bf050 to 0x1800bf126 (214 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b927c\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\npush    rbx                                                            ; +0x0, 0x1800bf050\npush    rsi                                                            ; +0x2, 0x1800bf052\npush    rdi                                                            ; +0x3, 0x1800bf053\nsub     rsp, 40h                                                       ; +0x4, 0x1800bf054\nmov     rbx, rcx                                                       ; +0x8, 0x1800bf058\nmov     rcx, [rcx+0E0h]; this                                          ; +0xb, 0x1800bf05b\nxor     esi, esi                                                       ; +0x12, 0x1800bf062\ntest    rcx, rcx                                                       ; +0x14, 0x1800bf064\njz      short loc_1800BF0C2                                            ; +0x17, 0x1800bf067\ncmp     [rbx+0E8h], rsi                                                ; +0x19, 0x1800bf069\njz      short loc_1800BF0C2                                            ; +0x20, 0x1800bf070\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x22, 0x1800bf072\nmov     [rbx+0E0h], rsi                                                ; +0x27, 0x1800bf077\nmov     rcx, [rbx+0E8h]; this                                          ; +0x2e, 0x1800bf07e\ntest    rcx, rcx                                                       ; +0x35, 0x1800bf085\njz      short loc_1800BF096                                            ; +0x38, 0x1800bf088\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x3a, 0x1800bf08a\nmov     [rbx+0E8h], rsi                                                ; +0x3f, 0x1800bf08f\nmov     rcx, [rbx+0F0h]; this                                          ; +0x46, 0x1800bf096\ntest    rcx, rcx                                                       ; +0x4d, 0x1800bf09d\njz      short loc_1800BF0AE                                            ; +0x50, 0x1800bf0a0\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x52, 0x1800bf0a2\nmov     [rbx+0F0h], rsi                                                ; +0x57, 0x1800bf0a7\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x5e, 0x1800bf0ae\nmov     rcx, rax; this                                                 ; +0x63, 0x1800bf0b3\nlea     rdx, aCcFpsImages; \"cc_fps_images\"                             ; +0x66, 0x1800bf0b6\ncall    ?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x6d, 0x1800bf0bd\nlea     rax, [rsp+58h+var_38]                                          ; +0x72, 0x1800bf0c2\nmov     [rsp+58h+arg_0], rax                                           ; +0x77, 0x1800bf0c7\nlea     rdx, Buf2                                                      ; +0x7c, 0x1800bf0cc\nlea     rcx, [rsp+58h+var_38]                                          ; +0x83, 0x1800bf0d3\ncall    sub_180005910                                                  ; +0x88, 0x1800bf0d8\nmov     rdi, rax                                                       ; +0x8d, 0x1800bf0dd\nmov     [rsp+58h+arg_8], rax                                           ; +0x90, 0x1800bf0e0\nlea     rdx, dword_1801A9B30                                           ; +0x95, 0x1800bf0e5\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x9c, 0x1800bf0ec\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xa1, 0x1800bf0f1\nnop                                                                    ; +0xa6, 0x1800bf0f6\nmov     rcx, [rbx+170h]; this                                          ; +0xa7, 0x1800bf0f7\ntest    rcx, rcx                                                       ; +0xae, 0x1800bf0fe\njz      short loc_1800BF10F                                            ; +0xb1, 0x1800bf101\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xb3, 0x1800bf103\nmov     [rbx+170h], rsi                                                ; +0xb8, 0x1800bf108\nmov     byte ptr [rbx+168h], 0                                         ; +0xbf, 0x1800bf10f\nmov     rcx, rdi                                                       ; +0xc6, 0x1800bf116\ncall    sub_180005B70                                                  ; +0xc9, 0x1800bf119\nadd     rsp, 40h                                                       ; +0xce, 0x1800bf11e\npop     rdi                                                            ; +0xd2, 0x1800bf122\npop     rsi                                                            ; +0xd3, 0x1800bf123\npop     rbx                                                            ; +0xd4, 0x1800bf124\nretn                                                                   ; +0xd5, 0x1800bf125", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b927c"], "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"}