{"type": "func", "start": 6443247776, "end": 6443247990, "name": "cocos2d::CCDirector::removeStatsLabel", "pseudocode": "// \n// cocos2d::CCDirector::removeStatsLabel from 0x1800c28a0 to 0x1800c2976 (214 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3540\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:25 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *this)\n{\n  cocos2d::CCObject *v2; // rcx\n  cocos2d::CCObject *v3; // rcx\n  cocos2d::CCObject *v4; // rcx\n  cocos2d::CCDictionary **v5; // rax\n  _QWORD *v6; // rdi\n  cocos2d::CCObject *v7; // rcx\n  _QWORD v8[7]; // [rsp+20h] [rbp-38h] BYREF\n  int v9; // [rsp+70h] [rbp+18h] BYREF\n\n  v2 = *((cocos2d::CCObject **)this + 29);\n  if ( v2 && *((_QWORD *)this + 30) )\n  {\n    cocos2d::CCObject::release(v2);\n    *((_QWORD *)this + 29) = 0;\n    v3 = *((cocos2d::CCObject **)this + 30);\n    if ( v3 )\n    {\n      cocos2d::CCObject::release(v3);\n      *((_QWORD *)this + 30) = 0;\n    }\n    v4 = *((cocos2d::CCObject **)this + 31);\n    if ( v4 )\n    {\n      cocos2d::CCObject::release(v4);\n      *((_QWORD *)this + 31) = 0;\n    }\n    v5 = (cocos2d::CCDictionary **)cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v5, \"cc_fps_images\");\n  }\n  v6 = sub_180005A10(v8, (char *)Text);\n  cocos2d::cc_timeval::operator=(&v9, dword_1801B3BA8);\n  v7 = *((cocos2d::CCObject **)this + 47);\n  if ( v7 )\n  {\n    cocos2d::CCObject::release(v7);\n    *((_QWORD *)this + 47) = 0;\n  }\n  *((_BYTE *)this + 368) = 0;\n  sub_180005C70((__int64)v6);\n}", "assembly": "; \n; cocos2d::CCDirector::removeStatsLabel from 0x1800c28a0 to 0x1800c2976 (214 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3540\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c28a0\npush    rsi                                                            ; +0x2, 0x1800c28a2\npush    rdi                                                            ; +0x3, 0x1800c28a3\nsub     rsp, 40h                                                       ; +0x4, 0x1800c28a4\nmov     rbx, rcx                                                       ; +0x8, 0x1800c28a8\nmov     rcx, [rcx+0E8h]; this                                          ; +0xb, 0x1800c28ab\nxor     esi, esi                                                       ; +0x12, 0x1800c28b2\ntest    rcx, rcx                                                       ; +0x14, 0x1800c28b4\njz      short loc_1800C2912                                            ; +0x17, 0x1800c28b7\ncmp     [rbx+0F0h], rsi                                                ; +0x19, 0x1800c28b9\njz      short loc_1800C2912                                            ; +0x20, 0x1800c28c0\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x22, 0x1800c28c2\nmov     [rbx+0E8h], rsi                                                ; +0x27, 0x1800c28c7\nmov     rcx, [rbx+0F0h]; this                                          ; +0x2e, 0x1800c28ce\ntest    rcx, rcx                                                       ; +0x35, 0x1800c28d5\njz      short loc_1800C28E6                                            ; +0x38, 0x1800c28d8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x3a, 0x1800c28da\nmov     [rbx+0F0h], rsi                                                ; +0x3f, 0x1800c28df\nmov     rcx, [rbx+0F8h]; this                                          ; +0x46, 0x1800c28e6\ntest    rcx, rcx                                                       ; +0x4d, 0x1800c28ed\njz      short loc_1800C28FE                                            ; +0x50, 0x1800c28f0\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x52, 0x1800c28f2\nmov     [rbx+0F8h], rsi                                                ; +0x57, 0x1800c28f7\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x5e, 0x1800c28fe\nmov     rcx, rax; this                                                 ; +0x63, 0x1800c2903\nlea     rdx, aCcFpsImages; \"cc_fps_images\"                             ; +0x66, 0x1800c2906\ncall    ?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x6d, 0x1800c290d\nlea     rax, [rsp+58h+var_38]                                          ; +0x72, 0x1800c2912\nmov     [rsp+58h+arg_0], rax                                           ; +0x77, 0x1800c2917\nlea     rdx, Text; Str                                                 ; +0x7c, 0x1800c291c\nlea     rcx, [rsp+58h+var_38]; void *                                  ; +0x83, 0x1800c2923\ncall    sub_180005A10                                                  ; +0x88, 0x1800c2928\nmov     rdi, rax                                                       ; +0x8d, 0x1800c292d\nmov     [rsp+58h+arg_8], rax                                           ; +0x90, 0x1800c2930\nlea     rdx, dword_1801B3BA8                                           ; +0x95, 0x1800c2935\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x9c, 0x1800c293c\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xa1, 0x1800c2941\nnop                                                                    ; +0xa6, 0x1800c2946\nmov     rcx, [rbx+178h]; this                                          ; +0xa7, 0x1800c2947\ntest    rcx, rcx                                                       ; +0xae, 0x1800c294e\njz      short loc_1800C295F                                            ; +0xb1, 0x1800c2951\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xb3, 0x1800c2953\nmov     [rbx+178h], rsi                                                ; +0xb8, 0x1800c2958\nmov     byte ptr [rbx+170h], 0                                         ; +0xbf, 0x1800c295f\nmov     rcx, rdi                                                       ; +0xc6, 0x1800c2966\ncall    sub_180005C70                                                  ; +0xc9, 0x1800c2969\nadd     rsp, 40h                                                       ; +0xce, 0x1800c296e\npop     rdi                                                            ; +0xd2, 0x1800c2972\npop     rsi                                                            ; +0xd3, 0x1800c2973\npop     rbx                                                            ; +0xd4, 0x1800c2974\nretn                                                                   ; +0xd5, 0x1800c2975", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c3540"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}