{"type": "func", "start": 6443112736, "end": 6443112817, "name": "sub_1800A1920", "pseudocode": "// \n// sub_1800A1920 from 0x1800a1920 to 0x1800a1971 (81 bytes)\n// \n// 20 xrefs:\n// > cocos2d::CCArray::CCArray @ 0x18000686c\n// > cocos2d::CCArray::CCArray @ 0x1800068c8\n// > cocos2d::CCArray::copyWithZone @ 0x180006a67\n// > cocos2d::CCArray::copyWithZone @ 0x180006a8a\n// > cocos2d::CCArray::create @ 0x180006bea\n// > cocos2d::CCArray::create @ 0x180006c0a\n// > cocos2d::CCArray::createWithCapacity @ 0x180006ca1\n// > cocos2d::CCArray::createWithCapacity @ 0x180006cbe\n// > cocos2d::CCArray::createWithObject @ 0x180006f32\n// > cocos2d::CCArray::createWithObject @ 0x180006f5b\n// > cocos2d::CCArray::init @ 0x180007067\n// > cocos2d::CCArray::initWithArray @ 0x1800070ae\n// > cocos2d::CCArray::initWithCapacity @ 0x1800070fa\n// > cocos2d::CCArray::initWithObject @ 0x180007136\n// > cocos2d::CCActionManager::actionAllocWithHashElement @ 0x180037fc6\n// > cocos2d::CCActionManager::addAction @ 0x1800384f2\n// > cocos2d::CCParallaxNode::CCParallaxNode @ 0x1800ae0b3\n// > cocos2d::CCScheduler::scheduleSelector @ 0x1800c5988\n// > <???> @ 0x1801c1728\n// > <???> @ 0x1801c1734\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\n_QWORD *__fastcall sub_1800A1920(size_t Count)\n{\n  unsigned int v1; // edi\n  _QWORD *v2; // rbx\n\n  v1 = 1;\n  if ( (_DWORD)Count )\n    v1 = Count;\n  v2 = malloc(0x18u);\n  *(_DWORD *)v2 = 0;\n  v2[2] = calloc(v1, 8u);\n  *((_DWORD *)v2 + 1) = v1;\n  *((_DWORD *)v2 + 2) = -1;\n  return v2;\n}", "assembly": "; \n; sub_1800A1920 from 0x1800a1920 to 0x1800a1971 (81 bytes)\n; \n; 20 xrefs:\n; > cocos2d::CCArray::CCArray @ 0x18000686c\n; > cocos2d::CCArray::CCArray @ 0x1800068c8\n; > cocos2d::CCArray::copyWithZone @ 0x180006a67\n; > cocos2d::CCArray::copyWithZone @ 0x180006a8a\n; > cocos2d::CCArray::create @ 0x180006bea\n; > cocos2d::CCArray::create @ 0x180006c0a\n; > cocos2d::CCArray::createWithCapacity @ 0x180006ca1\n; > cocos2d::CCArray::createWithCapacity @ 0x180006cbe\n; > cocos2d::CCArray::createWithObject @ 0x180006f32\n; > cocos2d::CCArray::createWithObject @ 0x180006f5b\n; > cocos2d::CCArray::init @ 0x180007067\n; > cocos2d::CCArray::initWithArray @ 0x1800070ae\n; > cocos2d::CCArray::initWithCapacity @ 0x1800070fa\n; > cocos2d::CCArray::initWithObject @ 0x180007136\n; > cocos2d::CCActionManager::actionAllocWithHashElement @ 0x180037fc6\n; > cocos2d::CCActionManager::addAction @ 0x1800384f2\n; > cocos2d::CCParallaxNode::CCParallaxNode @ 0x1800ae0b3\n; > cocos2d::CCScheduler::scheduleSelector @ 0x1800c5988\n; > <???> @ 0x1801c1728\n; > <???> @ 0x1801c1734\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, 0x1800a1920\npush    rdi                                                            ; +0x5, 0x1800a1925\nsub     rsp, 20h                                                       ; +0x6, 0x1800a1926\ntest    ecx, ecx                                                       ; +0xa, 0x1800a192a\nmov     edi, 1                                                         ; +0xc, 0x1800a192c\ncmovnz  edi, ecx                                                       ; +0x11, 0x1800a1931\nmov     ecx, 18h; Size                                                 ; +0x14, 0x1800a1934\ncall    cs:__imp_malloc                                                ; +0x19, 0x1800a1939\nmov     ecx, edi; Count                                                ; +0x1f, 0x1800a193f\nmov     edx, 8; Size                                                   ; +0x21, 0x1800a1941\nmov     rbx, rax                                                       ; +0x26, 0x1800a1946\nmov     dword ptr [rax], 0                                             ; +0x29, 0x1800a1949\ncall    cs:calloc                                                      ; +0x2f, 0x1800a194f\nmov     [rbx+10h], rax                                                 ; +0x35, 0x1800a1955\nmov     rax, rbx                                                       ; +0x39, 0x1800a1959\nmov     [rbx+4], edi                                                   ; +0x3c, 0x1800a195c\nmov     dword ptr [rbx+8], 0FFFFFFFFh                                  ; +0x3f, 0x1800a195f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x46, 0x1800a1966\nadd     rsp, 20h                                                       ; +0x4b, 0x1800a196b\npop     rdi                                                            ; +0x4f, 0x1800a196f\nretn                                                                   ; +0x50, 0x1800a1970", "xrefs": ["cocos2d::CCArray::CCArray @ 0x18000686c", "cocos2d::CCArray::CCArray @ 0x1800068c8", "cocos2d::CCArray::copyWithZone @ 0x180006a67", "cocos2d::CCArray::copyWithZone @ 0x180006a8a", "cocos2d::CCArray::create @ 0x180006bea", "cocos2d::CCArray::create @ 0x180006c0a", "cocos2d::CCArray::createWithCapacity @ 0x180006ca1", "cocos2d::CCArray::createWithCapacity @ 0x180006cbe", "cocos2d::CCArray::createWithObject @ 0x180006f32", "cocos2d::CCArray::createWithObject @ 0x180006f5b", "cocos2d::CCArray::init @ 0x180007067", "cocos2d::CCArray::initWithArray @ 0x1800070ae", "cocos2d::CCArray::initWithCapacity @ 0x1800070fa", "cocos2d::CCArray::initWithObject @ 0x180007136", "cocos2d::CCActionManager::actionAllocWithHashElement @ 0x180037fc6", "cocos2d::CCActionManager::addAction @ 0x1800384f2", "cocos2d::CCParallaxNode::CCParallaxNode @ 0x1800ae0b3", "cocos2d::CCScheduler::scheduleSelector @ 0x1800c5988", "<???> @ 0x1801c1728", "<???> @ 0x1801c1734"], "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"}