{"type": "func", "start": 6442481728, "end": 6442481831, "name": "cocos2d::CCPoolManager::purgePoolManager", "pseudocode": "// \n// cocos2d::CCPoolManager::purgePoolManager from 0x180007840 to 0x1800078a7 (103 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::~CCDirector @ 0x1800c168e\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7aec\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:21:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCPoolManager::purgePoolManager()\n{\n  cocos2d::CCPoolManager *v0; // rbx\n  __int64 v1; // r8\n\n  v0 = Block;\n  if ( Block )\n  {\n    cocos2d::CCPoolManager::finalize((cocos2d::CCArray **)Block);\n    *((_QWORD *)v0 + 1) = 0;\n    LOBYTE(v1) = 1;\n    cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)v0, 0, v1);\n    if ( *(_QWORD *)v0 )\n    {\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)v0 + 8LL))(*(_QWORD *)v0, 1);\n      *(_QWORD *)v0 = 0;\n    }\n    j_j_free_0(v0);\n    Block = nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCPoolManager::purgePoolManager from 0x180007840 to 0x1800078a7 (103 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::~CCDirector @ 0x1800c168e\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7aec\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:21:18 +0000\n; \npush    rbx                                                            ; +0x0, 0x180007840\nsub     rsp, 20h                                                       ; +0x2, 0x180007842\nmov     rbx, cs:Block                                                  ; +0x6, 0x180007846\ntest    rbx, rbx                                                       ; +0xd, 0x18000784d\njz      short loc_1800078A1                                            ; +0x10, 0x180007850\nmov     rcx, rbx; this                                                 ; +0x12, 0x180007852\ncall    ?finalize@CCPoolManager@cocos2d@@QEAAXXZ; cocos2d::CCPoolManager::finalize(void) ; +0x15, 0x180007855\nmov     qword ptr [rbx+8], 0                                           ; +0x1a, 0x18000785a\nmov     r8b, 1; bool                                                   ; +0x22, 0x180007862\nxor     edx, edx; unsigned int                                         ; +0x25, 0x180007865\nmov     rcx, [rbx]; this                                               ; +0x27, 0x180007867\ncall    ?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x2a, 0x18000786a\nmov     rcx, [rbx]                                                     ; +0x2f, 0x18000786f\ntest    rcx, rcx                                                       ; +0x32, 0x180007872\njz      short loc_180007889                                            ; +0x35, 0x180007875\nmov     rax, [rcx]                                                     ; +0x37, 0x180007877\nmov     edx, 1                                                         ; +0x3a, 0x18000787a\ncall    qword ptr [rax+8]                                              ; +0x3f, 0x18000787f\nmov     qword ptr [rbx], 0                                             ; +0x42, 0x180007882\nmov     edx, 10h                                                       ; +0x49, 0x180007889\nmov     rcx, rbx; Block                                                ; +0x4e, 0x18000788e\ncall    j_j_free_0                                                     ; +0x51, 0x180007891\nmov     cs:Block, 0                                                    ; +0x56, 0x180007896\nadd     rsp, 20h                                                       ; +0x61, 0x1800078a1\npop     rbx                                                            ; +0x65, 0x1800078a5\nretn                                                                   ; +0x66, 0x1800078a6", "xrefs": ["cocos2d::CCDirector::~CCDirector @ 0x1800c168e", "<???> @ 0x18014cf68", "<???> @ 0x1801b7aec"], "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"}