{"type": "func", "start": 6443247264, "end": 6443247571, "name": "cocos2d::CCDirector::purgeDirector", "pseudocode": "// \n// cocos2d::CCDirector::purgeDirector from 0x1800c26a0 to 0x1800c27d3 (307 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22d8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3528\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\nvoid __fastcall cocos2d::CCDirector::purgeDirector(cocos2d::CCTouchDispatcher **this)\n{\n  cocos2d::CCScheduler *v2; // rax\n  __int64 v3; // rcx\n  cocos2d::CCArray *v4; // rcx\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n  cocos2d::CCObject *v7; // rcx\n  cocos2d *v8; // rcx\n  cocos2d *v9; // rcx\n\n  v2 = (cocos2d::CCScheduler *)(*((__int64 (__fastcall **)(cocos2d::CCTouchDispatcher **))*this + 14))(this);\n  cocos2d::CCScheduler::unscheduleAll(v2);\n  cocos2d::CCTouchDispatcher::removeAllDelegates(*(this + 15));\n  v3 = (__int64)*(this + 34);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 720LL))(v3);\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 34) + 712LL))(*(this + 34));\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 34) + 728LL))(*(this + 34));\n    cocos2d::CCObject::release(*(this + 34));\n  }\n  v4 = *(this + 37);\n  *(this + 34) = nullptr;\n  *(this + 35) = nullptr;\n  *(this + 12) = nullptr;\n  cocos2d::CCArray::removeAllObjects(v4);\n  (*((void (__fastcall **)(cocos2d::CCTouchDispatcher **))*this + 11))(this);\n  v5 = *(this + 29);\n  if ( v5 )\n  {\n    cocos2d::CCObject::release(v5);\n    *(this + 29) = nullptr;\n  }\n  v6 = *(this + 30);\n  if ( v6 )\n  {\n    cocos2d::CCObject::release(v6);\n    *(this + 30) = nullptr;\n  }\n  v7 = *(this + 31);\n  if ( v7 )\n  {\n    cocos2d::CCObject::release(v7);\n    *(this + 31) = nullptr;\n  }\n  cocos2d::CCLabelBMFont::purgeCachedData();\n  cocos2d::ccDrawFree(v8);\n  cocos2d::CCAnimationCache::purgeSharedAnimationCache();\n  cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache();\n  cocos2d::CCTextureCache::purgeSharedTextureCache();\n  cocos2d::CCShaderCache::purgeSharedShaderCache();\n  cocos2d::CCFileUtils::purgeFileUtils();\n  cocos2d::CCConfiguration::purgeConfiguration();\n  cocos2d::CCUserDefault::purgeSharedUserDefault();\n  cocos2d::CCNotificationCenter::purgeNotificationCenter();\n  cocos2d::ccGLInvalidateStateCache(v9);\n  (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 24) + 8LL))(*(this + 24));\n  *(this + 24) = nullptr;\n  cocos2d::CCObject::release((cocos2d::CCObject *)this);\n}", "assembly": "; \n; cocos2d::CCDirector::purgeDirector from 0x1800c26a0 to 0x1800c27d3 (307 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22d8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3528\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c26a0\npush    rdi                                                            ; +0x5, 0x1800c26a5\nsub     rsp, 20h                                                       ; +0x6, 0x1800c26a6\nmov     rax, [rcx]                                                     ; +0xa, 0x1800c26aa\nmov     rbx, rcx                                                       ; +0xd, 0x1800c26ad\ncall    qword ptr [rax+70h]                                            ; +0x10, 0x1800c26b0\nmov     rcx, rax; this                                                 ; +0x13, 0x1800c26b3\ncall    ?unscheduleAll@CCScheduler@cocos2d@@QEAAXXZ; cocos2d::CCScheduler::unscheduleAll(void) ; +0x16, 0x1800c26b6\nmov     rcx, [rbx+78h]; this                                           ; +0x1b, 0x1800c26bb\ncall    ?removeAllDelegates@CCTouchDispatcher@cocos2d@@QEAAXXZ; cocos2d::CCTouchDispatcher::removeAllDelegates(void) ; +0x1f, 0x1800c26bf\nmov     rcx, [rbx+110h]                                                ; +0x24, 0x1800c26c4\ntest    rcx, rcx                                                       ; +0x2b, 0x1800c26cb\njz      short loc_1800C2705                                            ; +0x2e, 0x1800c26ce\nmov     rax, [rcx]                                                     ; +0x30, 0x1800c26d0\ncall    qword ptr [rax+2D0h]                                           ; +0x33, 0x1800c26d3\nmov     rcx, [rbx+110h]                                                ; +0x39, 0x1800c26d9\nmov     rax, [rcx]                                                     ; +0x40, 0x1800c26e0\ncall    qword ptr [rax+2C8h]                                           ; +0x43, 0x1800c26e3\nmov     rcx, [rbx+110h]                                                ; +0x49, 0x1800c26e9\nmov     rax, [rcx]                                                     ; +0x50, 0x1800c26f0\ncall    qword ptr [rax+2D8h]                                           ; +0x53, 0x1800c26f3\nmov     rcx, [rbx+110h]; this                                          ; +0x59, 0x1800c26f9\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x60, 0x1800c2700\nmov     rcx, [rbx+128h]; this                                          ; +0x65, 0x1800c2705\nxor     edi, edi                                                       ; +0x6c, 0x1800c270c\nmov     [rbx+110h], rdi                                                ; +0x6e, 0x1800c270e\nmov     [rbx+118h], rdi                                                ; +0x75, 0x1800c2715\nmov     [rbx+60h], rdi                                                 ; +0x7c, 0x1800c271c\ncall    ?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x80, 0x1800c2720\nmov     rax, [rbx]                                                     ; +0x85, 0x1800c2725\nmov     rcx, rbx                                                       ; +0x88, 0x1800c2728\ncall    qword ptr [rax+58h]                                            ; +0x8b, 0x1800c272b\nmov     rcx, [rbx+0E8h]; this                                          ; +0x8e, 0x1800c272e\ntest    rcx, rcx                                                       ; +0x95, 0x1800c2735\njz      short loc_1800C2746                                            ; +0x98, 0x1800c2738\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9a, 0x1800c273a\nmov     [rbx+0E8h], rdi                                                ; +0x9f, 0x1800c273f\nmov     rcx, [rbx+0F0h]; this                                          ; +0xa6, 0x1800c2746\ntest    rcx, rcx                                                       ; +0xad, 0x1800c274d\njz      short loc_1800C275E                                            ; +0xb0, 0x1800c2750\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xb2, 0x1800c2752\nmov     [rbx+0F0h], rdi                                                ; +0xb7, 0x1800c2757\nmov     rcx, [rbx+0F8h]; this                                          ; +0xbe, 0x1800c275e\ntest    rcx, rcx                                                       ; +0xc5, 0x1800c2765\njz      short loc_1800C2776                                            ; +0xc8, 0x1800c2768\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xca, 0x1800c276a\nmov     [rbx+0F8h], rdi                                                ; +0xcf, 0x1800c276f\ncall    ?purgeCachedData@CCLabelBMFont@cocos2d@@SAXXZ; cocos2d::CCLabelBMFont::purgeCachedData(void) ; +0xd6, 0x1800c2776\ncall    ?ccDrawFree@cocos2d@@YAXXZ; cocos2d::ccDrawFree(void)          ; +0xdb, 0x1800c277b\ncall    ?purgeSharedAnimationCache@CCAnimationCache@cocos2d@@SAXXZ; cocos2d::CCAnimationCache::purgeSharedAnimationCache(void) ; +0xe0, 0x1800c2780\ncall    ?purgeSharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAXXZ; cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(void) ; +0xe5, 0x1800c2785\ncall    ?purgeSharedTextureCache@CCTextureCache@cocos2d@@SAXXZ; cocos2d::CCTextureCache::purgeSharedTextureCache(void) ; +0xea, 0x1800c278a\ncall    ?purgeSharedShaderCache@CCShaderCache@cocos2d@@SAXXZ; cocos2d::CCShaderCache::purgeSharedShaderCache(void) ; +0xef, 0x1800c278f\ncall    ?purgeFileUtils@CCFileUtils@cocos2d@@SAXXZ; cocos2d::CCFileUtils::purgeFileUtils(void) ; +0xf4, 0x1800c2794\ncall    ?purgeConfiguration@CCConfiguration@cocos2d@@SAXXZ; cocos2d::CCConfiguration::purgeConfiguration(void) ; +0xf9, 0x1800c2799\ncall    ?purgeSharedUserDefault@CCUserDefault@cocos2d@@SAXXZ; cocos2d::CCUserDefault::purgeSharedUserDefault(void) ; +0xfe, 0x1800c279e\ncall    ?purgeNotificationCenter@CCNotificationCenter@cocos2d@@SAXXZ; cocos2d::CCNotificationCenter::purgeNotificationCenter(void) ; +0x103, 0x1800c27a3\ncall    ?ccGLInvalidateStateCache@cocos2d@@YAXXZ; cocos2d::ccGLInvalidateStateCache(void) ; +0x108, 0x1800c27a8\nmov     rcx, [rbx+0C0h]                                                ; +0x10d, 0x1800c27ad\nmov     rax, [rcx]                                                     ; +0x114, 0x1800c27b4\ncall    qword ptr [rax+8]                                              ; +0x117, 0x1800c27b7\nmov     rcx, rbx; this                                                 ; +0x11a, 0x1800c27ba\nmov     [rbx+0C0h], rdi                                                ; +0x11d, 0x1800c27bd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x124, 0x1800c27c4\nadd     rsp, 20h                                                       ; +0x129, 0x1800c27c9\npop     rdi                                                            ; +0x12d, 0x1800c27cd\njmp     ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x12e, 0x1800c27ce", "xrefs": ["cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22d8", "<???> @ 0x18014cf68", "<???> @ 0x1801c3528"], "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"}