{"type": "func", "start": 6443112160, "end": 6443112258, "name": "sub_1800A16E0", "pseudocode": "// \n// sub_1800A16E0 from 0x1800a16e0 to 0x1800a1742 (98 bytes)\n// \n// 25 xrefs:\n// > cocos2d::CCArray::CCArray @ 0x180006865\n// > cocos2d::CCArray::CCArray @ 0x1800068be\n// > cocos2d::CCArray::~CCArray @ 0x1800068f7\n// > sub_180006910 @ 0x18000697c\n// > cocos2d::CCArray::copyWithZone @ 0x180006a60\n// > cocos2d::CCArray::copyWithZone @ 0x180006a83\n// > cocos2d::CCArray::create @ 0x180006be0\n// > cocos2d::CCArray::create @ 0x180006c00\n// > cocos2d::CCArray::createWithCapacity @ 0x180006c97\n// > cocos2d::CCArray::createWithCapacity @ 0x180006cb7\n// > cocos2d::CCArray::createWithObject @ 0x180006f28\n// > cocos2d::CCArray::createWithObject @ 0x180006f48\n// > cocos2d::CCArray::createWithObject @ 0x180006f51\n// > cocos2d::CCArray::init @ 0x18000705d\n// > cocos2d::CCArray::initWithArray @ 0x180007099\n// > cocos2d::CCArray::initWithArray @ 0x1800070a7\n// > cocos2d::CCArray::initWithCapacity @ 0x1800070f3\n// > cocos2d::CCArray::initWithObject @ 0x180007124\n// > cocos2d::CCArray::initWithObject @ 0x18000712c\n// > cocos2d::CCArray::initWithObjects @ 0x18000717b\n// > cocos2d::CCActionManager::deleteHashElement @ 0x180038553\n// > cocos2d::CCParallaxNode::~CCParallaxNode @ 0x1800ae128\n// > sub_1800AE150 @ 0x1800ae1c8\n// > cocos2d::CCScheduler::removeHashElement @ 0x1800c4d0c\n// > <???> @ 0x1801c1710\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:13 +0000\n// \n\nvoid __fastcall sub_1800A16E0(void **a1)\n{\n  _QWORD *v1; // rbx\n  int i; // eax\n  __int64 v4; // rcx\n  unsigned int v5; // eax\n\n  v1 = *a1;\n  if ( *a1 )\n  {\n    sub_1800A1D70(*a1);\n    for ( i = *(_DWORD *)v1; *(_DWORD *)v1; i = *(_DWORD *)v1 )\n    {\n      v4 = v1[2];\n      v5 = i - 1;\n      *(_DWORD *)v1 = v5;\n      cocos2d::CCObject::release(*(cocos2d::CCObject **)(v4 + 8LL * v5));\n    }\n    free(*((void **)*a1 + 2));\n    free(*a1);\n    *a1 = nullptr;\n  }\n}", "assembly": "; \n; sub_1800A16E0 from 0x1800a16e0 to 0x1800a1742 (98 bytes)\n; \n; 25 xrefs:\n; > cocos2d::CCArray::CCArray @ 0x180006865\n; > cocos2d::CCArray::CCArray @ 0x1800068be\n; > cocos2d::CCArray::~CCArray @ 0x1800068f7\n; > sub_180006910 @ 0x18000697c\n; > cocos2d::CCArray::copyWithZone @ 0x180006a60\n; > cocos2d::CCArray::copyWithZone @ 0x180006a83\n; > cocos2d::CCArray::create @ 0x180006be0\n; > cocos2d::CCArray::create @ 0x180006c00\n; > cocos2d::CCArray::createWithCapacity @ 0x180006c97\n; > cocos2d::CCArray::createWithCapacity @ 0x180006cb7\n; > cocos2d::CCArray::createWithObject @ 0x180006f28\n; > cocos2d::CCArray::createWithObject @ 0x180006f48\n; > cocos2d::CCArray::createWithObject @ 0x180006f51\n; > cocos2d::CCArray::init @ 0x18000705d\n; > cocos2d::CCArray::initWithArray @ 0x180007099\n; > cocos2d::CCArray::initWithArray @ 0x1800070a7\n; > cocos2d::CCArray::initWithCapacity @ 0x1800070f3\n; > cocos2d::CCArray::initWithObject @ 0x180007124\n; > cocos2d::CCArray::initWithObject @ 0x18000712c\n; > cocos2d::CCArray::initWithObjects @ 0x18000717b\n; > cocos2d::CCActionManager::deleteHashElement @ 0x180038553\n; > cocos2d::CCParallaxNode::~CCParallaxNode @ 0x1800ae128\n; > sub_1800AE150 @ 0x1800ae1c8\n; > cocos2d::CCScheduler::removeHashElement @ 0x1800c4d0c\n; > <???> @ 0x1801c1710\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:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a16e0\npush    rdi                                                            ; +0x5, 0x1800a16e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800a16e6\nmov     rbx, [rcx]                                                     ; +0xa, 0x1800a16ea\nmov     rdi, rcx                                                       ; +0xd, 0x1800a16ed\ntest    rbx, rbx                                                       ; +0x10, 0x1800a16f0\njz      short loc_1800A1737                                            ; +0x13, 0x1800a16f3\nmov     rcx, rbx                                                       ; +0x15, 0x1800a16f5\ncall    sub_1800A1D70                                                  ; +0x18, 0x1800a16f8\nmov     eax, [rbx]                                                     ; +0x1d, 0x1800a16fd\ntest    eax, eax                                                       ; +0x1f, 0x1800a16ff\njz      short loc_1800A171A                                            ; +0x21, 0x1800a1701\nmov     rcx, [rbx+10h]                                                 ; +0x23, 0x1800a1703\ndec     eax                                                            ; +0x27, 0x1800a1707\nmov     [rbx], eax                                                     ; +0x29, 0x1800a1709\nmov     rcx, [rcx+rax*8]; this                                         ; +0x2b, 0x1800a170b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2f, 0x1800a170f\nmov     eax, [rbx]                                                     ; +0x34, 0x1800a1714\ntest    eax, eax                                                       ; +0x36, 0x1800a1716\njnz     short loc_1800A1703                                            ; +0x38, 0x1800a1718\nmov     rcx, [rdi]                                                     ; +0x3a, 0x1800a171a\nmov     rcx, [rcx+10h]; Block                                          ; +0x3d, 0x1800a171d\ncall    cs:__imp_free                                                  ; +0x41, 0x1800a1721\nmov     rcx, [rdi]; Block                                              ; +0x47, 0x1800a1727\ncall    cs:__imp_free                                                  ; +0x4a, 0x1800a172a\nmov     qword ptr [rdi], 0                                             ; +0x50, 0x1800a1730\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x1800a1737\nadd     rsp, 20h                                                       ; +0x5c, 0x1800a173c\npop     rdi                                                            ; +0x60, 0x1800a1740\nretn                                                                   ; +0x61, 0x1800a1741", "xrefs": ["cocos2d::CCArray::CCArray @ 0x180006865", "cocos2d::CCArray::CCArray @ 0x1800068be", "cocos2d::CCArray::~CCArray @ 0x1800068f7", "sub_180006910 @ 0x18000697c", "cocos2d::CCArray::copyWithZone @ 0x180006a60", "cocos2d::CCArray::copyWithZone @ 0x180006a83", "cocos2d::CCArray::create @ 0x180006be0", "cocos2d::CCArray::create @ 0x180006c00", "cocos2d::CCArray::createWithCapacity @ 0x180006c97", "cocos2d::CCArray::createWithCapacity @ 0x180006cb7", "cocos2d::CCArray::createWithObject @ 0x180006f28", "cocos2d::CCArray::createWithObject @ 0x180006f48", "cocos2d::CCArray::createWithObject @ 0x180006f51", "cocos2d::CCArray::init @ 0x18000705d", "cocos2d::CCArray::initWithArray @ 0x180007099", "cocos2d::CCArray::initWithArray @ 0x1800070a7", "cocos2d::CCArray::initWithCapacity @ 0x1800070f3", "cocos2d::CCArray::initWithObject @ 0x180007124", "cocos2d::CCArray::initWithObject @ 0x18000712c", "cocos2d::CCArray::initWithObjects @ 0x18000717b", "cocos2d::CCActionManager::deleteHashElement @ 0x180038553", "cocos2d::CCParallaxNode::~CCParallaxNode @ 0x1800ae128", "sub_1800AE150 @ 0x1800ae1c8", "cocos2d::CCScheduler::removeHashElement @ 0x1800c4d0c", "<???> @ 0x1801c1710"], "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"}