{"type": "func", "start": 6442481360, "end": 6442481464, "name": "cocos2d::CCAutoreleasePool::clear", "pseudocode": "// \n// cocos2d::CCAutoreleasePool::clear from 0x1800076d0 to 0x180007738 (104 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCPoolManager::finalize @ 0x180007788\n// > cocos2d::CCPoolManager::pop @ 0x180007803\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7a8c\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::CCAutoreleasePool::clear(cocos2d::CCAutoreleasePool *this)\n{\n  __int64 v2; // rax\n  unsigned int *v3; // rdx\n  __int64 v4; // rax\n  unsigned __int64 v5; // rdx\n  unsigned __int64 i; // rcx\n\n  if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)) )\n  {\n    v2 = *((_QWORD *)this + 7);\n    if ( v2 )\n    {\n      v3 = *(unsigned int **)(v2 + 56);\n      v4 = *v3;\n      if ( (_DWORD)v4 )\n      {\n        v5 = *((_QWORD *)v3 + 2);\n        for ( i = v5 + 8 * (v4 - 1); i >= v5; i -= 8LL )\n        {\n          if ( !*(_QWORD *)i )\n            break;\n          --*(_DWORD *)(*(_QWORD *)i + 24LL);\n        }\n      }\n    }\n    cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 7));\n  }\n}", "assembly": "; \n; cocos2d::CCAutoreleasePool::clear from 0x1800076d0 to 0x180007738 (104 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCPoolManager::finalize @ 0x180007788\n; > cocos2d::CCPoolManager::pop @ 0x180007803\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7a8c\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, 0x1800076d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800076d2\nmov     rbx, rcx                                                       ; +0x6, 0x1800076d6\nmov     rcx, [rcx+38h]; this                                           ; +0x9, 0x1800076d9\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd, 0x1800076dd\ntest    eax, eax                                                       ; +0x12, 0x1800076e2\njz      short loc_180007732                                            ; +0x14, 0x1800076e4\nmov     rax, [rbx+38h]                                                 ; +0x16, 0x1800076e6\ntest    rax, rax                                                       ; +0x1a, 0x1800076ea\njz      short loc_180007724                                            ; +0x1d, 0x1800076ed\nmov     rdx, [rax+38h]                                                 ; +0x1f, 0x1800076ef\nmov     eax, [rdx]                                                     ; +0x23, 0x1800076f3\ntest    eax, eax                                                       ; +0x25, 0x1800076f5\njz      short loc_180007724                                            ; +0x27, 0x1800076f7\nmov     rdx, [rdx+10h]                                                 ; +0x29, 0x1800076f9\nlea     rcx, [rax-1]                                                   ; +0x2d, 0x1800076fd\nlea     rcx, [rdx+rcx*8]                                               ; +0x31, 0x180007701\ncmp     rcx, rdx                                                       ; +0x35, 0x180007705\njb      short loc_180007724                                            ; +0x38, 0x180007708\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x18000770a\nmov     rax, [rcx]                                                     ; +0x40, 0x180007710\ntest    rax, rax                                                       ; +0x43, 0x180007713\njz      short loc_180007724                                            ; +0x46, 0x180007716\ndec     dword ptr [rax+18h]                                            ; +0x48, 0x180007718\nsub     rcx, 8                                                         ; +0x4b, 0x18000771b\ncmp     rcx, rdx                                                       ; +0x4f, 0x18000771f\njnb     short loc_180007710                                            ; +0x52, 0x180007722\nmov     rcx, [rbx+38h]; this                                           ; +0x54, 0x180007724\nadd     rsp, 20h                                                       ; +0x58, 0x180007728\npop     rbx                                                            ; +0x5c, 0x18000772c\njmp     ?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x5d, 0x18000772d\nadd     rsp, 20h                                                       ; +0x62, 0x180007732\npop     rbx                                                            ; +0x66, 0x180007736\nretn                                                                   ; +0x67, 0x180007737", "xrefs": ["cocos2d::CCPoolManager::finalize @ 0x180007788", "cocos2d::CCPoolManager::pop @ 0x180007803", "<???> @ 0x18014cf68", "<???> @ 0x1801b7a8c"], "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"}