{"type": "func", "start": 6442481472, "end": 6442481569, "name": "cocos2d::CCPoolManager::finalize", "pseudocode": "// \n// cocos2d::CCPoolManager::finalize from 0x180007740 to 0x1800077a1 (97 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCPoolManager::~CCPoolManager @ 0x180007549\n// > cocos2d::CCPoolManager::purgePoolManager @ 0x180007855\n// > <???> @ 0x18013a610\n// > <???> @ 0x18013a620\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7a98\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\nvoid __fastcall cocos2d::CCPoolManager::finalize(cocos2d::CCArray **this)\n{\n  unsigned int *v2; // rbx\n  __int64 v3; // rax\n  cocos2d::CCAutoreleasePool **v4; // rbx\n  cocos2d::CCAutoreleasePool **i; // rdi\n\n  if ( (unsigned int)cocos2d::CCArray::count(*this) )\n  {\n    if ( *this )\n    {\n      v2 = *((unsigned int **)*this + 7);\n      v3 = *v2;\n      if ( (_DWORD)v3 )\n      {\n        v4 = *((cocos2d::CCAutoreleasePool ***)v2 + 2);\n        for ( i = &v4[v3 - 1]; v4 <= i; ++v4 )\n        {\n          if ( !*v4 )\n            break;\n          cocos2d::CCAutoreleasePool::clear(*v4);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCPoolManager::finalize from 0x180007740 to 0x1800077a1 (97 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCPoolManager::~CCPoolManager @ 0x180007549\n; > cocos2d::CCPoolManager::purgePoolManager @ 0x180007855\n; > <???> @ 0x18013a610\n; > <???> @ 0x18013a620\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7a98\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, 0x180007740\nsub     rsp, 20h                                                       ; +0x2, 0x180007742\nmov     rbx, rcx                                                       ; +0x6, 0x180007746\nmov     rcx, [rcx]; this                                               ; +0x9, 0x180007749\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc, 0x18000774c\ntest    eax, eax                                                       ; +0x11, 0x180007751\njz      short loc_18000779B                                            ; +0x13, 0x180007753\nmov     rax, [rbx]                                                     ; +0x15, 0x180007755\ntest    rax, rax                                                       ; +0x18, 0x180007758\njz      short loc_18000779B                                            ; +0x1b, 0x18000775b\nmov     rbx, [rax+38h]                                                 ; +0x1d, 0x18000775d\nmov     eax, [rbx]                                                     ; +0x21, 0x180007761\ntest    eax, eax                                                       ; +0x23, 0x180007763\njz      short loc_18000779B                                            ; +0x25, 0x180007765\nmov     rbx, [rbx+10h]                                                 ; +0x27, 0x180007767\nmov     [rsp+28h+arg_0], rdi                                           ; +0x2b, 0x18000776b\nlea     rdi, [rax-1]                                                   ; +0x30, 0x180007770\nlea     rdi, [rbx+rdi*8]                                               ; +0x34, 0x180007774\ncmp     rbx, rdi                                                       ; +0x38, 0x180007778\nja      short loc_180007796                                            ; +0x3b, 0x18000777b\nnop     dword ptr [rax]                                                ; +0x3d, 0x18000777d\nmov     rcx, [rbx]; this                                               ; +0x40, 0x180007780\ntest    rcx, rcx                                                       ; +0x43, 0x180007783\njz      short loc_180007796                                            ; +0x46, 0x180007786\ncall    ?clear@CCAutoreleasePool@cocos2d@@QEAAXXZ; cocos2d::CCAutoreleasePool::clear(void) ; +0x48, 0x180007788\nadd     rbx, 8                                                         ; +0x4d, 0x18000778d\ncmp     rbx, rdi                                                       ; +0x51, 0x180007791\njbe     short loc_180007780                                            ; +0x54, 0x180007794\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x56, 0x180007796\nadd     rsp, 20h                                                       ; +0x5b, 0x18000779b\npop     rbx                                                            ; +0x5f, 0x18000779f\nretn                                                                   ; +0x60, 0x1800077a0", "xrefs": ["cocos2d::CCPoolManager::~CCPoolManager @ 0x180007549", "cocos2d::CCPoolManager::purgePoolManager @ 0x180007855", "<???> @ 0x18013a610", "<???> @ 0x18013a620", "<???> @ 0x18014cf68", "<???> @ 0x1801b7a98"], "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"}