{"type": "func", "start": 6442481392, "end": 6442481495, "name": "cocos2d::CCPoolManager::purgePoolManager", "pseudocode": "// \n// cocos2d::CCPoolManager::purgePoolManager from 0x1800076f0 to 0x180007757 (103 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::~CCDirector @ 0x1800bde6e\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801adac8\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=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(Block);\n    v0->m_pCurReleasePool = nullptr;\n    LOBYTE(v1) = 1;\n    cocos2d::CCArray::removeObjectAtIndex(v0->m_pReleasePoolStack, 0, v1);\n    if ( v0->m_pReleasePoolStack )\n    {\n      ((void (__fastcall *)(cocos2d::CCArray *, __int64))v0->m_pReleasePoolStack->~CCArray)(v0->m_pReleasePoolStack, 1);\n      v0->m_pReleasePoolStack = nullptr;\n    }\n    j_j_free_0(v0);\n    Block = nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCPoolManager::purgePoolManager from 0x1800076f0 to 0x180007757 (103 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::~CCDirector @ 0x1800bde6e\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801adac8\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, 0x1800076f0\nsub     rsp, 20h                                                       ; +0x2, 0x1800076f2\nmov     rbx, cs:Block                                                  ; +0x6, 0x1800076f6\ntest    rbx, rbx                                                       ; +0xd, 0x1800076fd\njz      short loc_180007751                                            ; +0x10, 0x180007700\nmov     rcx, rbx; this                                                 ; +0x12, 0x180007702\ncall    ?finalize@CCPoolManager@cocos2d@@QEAAXXZ; cocos2d::CCPoolManager::finalize(void) ; +0x15, 0x180007705\nmov     qword ptr [rbx+8], 0                                           ; +0x1a, 0x18000770a\nmov     r8b, 1; bool                                                   ; +0x22, 0x180007712\nxor     edx, edx; unsigned int                                         ; +0x25, 0x180007715\nmov     rcx, [rbx]; this                                               ; +0x27, 0x180007717\ncall    ?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x2a, 0x18000771a\nmov     rcx, [rbx]                                                     ; +0x2f, 0x18000771f\ntest    rcx, rcx                                                       ; +0x32, 0x180007722\njz      short loc_180007739                                            ; +0x35, 0x180007725\nmov     rax, [rcx]                                                     ; +0x37, 0x180007727\nmov     edx, 1                                                         ; +0x3a, 0x18000772a\ncall    qword ptr [rax+8]                                              ; +0x3f, 0x18000772f\nmov     qword ptr [rbx], 0                                             ; +0x42, 0x180007732\nmov     edx, 10h                                                       ; +0x49, 0x180007739\nmov     rcx, rbx; Block                                                ; +0x4e, 0x18000773e\ncall    j_j_free_0                                                     ; +0x51, 0x180007741\nmov     cs:Block, 0                                                    ; +0x56, 0x180007746\nadd     rsp, 20h                                                       ; +0x61, 0x180007751\npop     rbx                                                            ; +0x65, 0x180007755\nretn                                                                   ; +0x66, 0x180007756", "xrefs": ["cocos2d::CCDirector::~CCDirector @ 0x1800bde6e", "<???> @ 0x1801438a8", "<???> @ 0x1801adac8"], "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"}