{"type": "func", "start": 6442478672, "end": 6442478818, "name": "cocos2d::CCArray::createWithCapacity", "pseudocode": "// \n// cocos2d::CCArray::createWithCapacity from 0x180006c50 to 0x180006ce2 (146 bytes)\n// \n// 19 xrefs:\n// > cocos2d::CCNode::addChild @ 0x180002bcf\n// > cocos2d::CCNode::childrenAlloc @ 0x180002dce\n// > cocos2d::CCDictionary::allKeys @ 0x180009944\n// > cocos2d::CCAnimate::reverse @ 0x1800360d9\n// > cocos2d::CCLayerMultiplex::initWithArray @ 0x180051e52\n// > cocos2d::CCLayerMultiplex::initWithLayers @ 0x1800521c5\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008d9cf\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008dde8\n// > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x180096789\n// > cocos2d::CCNotificationCenter::postNotification @ 0x180096df1\n// > cocos2d::CCNotificationCenter::postNotification @ 0x180096f02\n// > cocos2d::CCNotificationCenter::sharedNotificationCenter @ 0x180097298\n// > cocos2d::CCTMXMapInfo::internalInit @ 0x1800b328d\n// > cocos2d::CCTouchDispatcher::init @ 0x1800b69a2\n// > cocos2d::CCTouchDispatcher::init @ 0x1800b69b8\n// > cocos2d::CCTouchDispatcher::init @ 0x1800b69ce\n// > cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c542a\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7960\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\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCArray *__fastcall cocos2d::CCArray::createWithCapacity(size_t Count)\n{\n  unsigned int v1; // esi\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // rdi\n\n  v1 = Count;\n  v2 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);\n  v3 = v2;\n  if ( v2 )\n  {\n    cocos2d::CCObject::CCObject(v2);\n    *(_QWORD *)v3 = &cocos2d::CCArray::`vftable';\n    *((_QWORD *)v3 + 7) = 0;\n    sub_1800A16E0((char *)v3 + 56);\n    *((_QWORD *)v3 + 7) = sub_1800A1920(1u);\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  if ( v3 )\n  {\n    sub_1800A16E0((char *)v3 + 56);\n    *((_QWORD *)v3 + 7) = sub_1800A1920(v1);\n    cocos2d::CCObject::autorelease(v3);\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCArray::createWithCapacity from 0x180006c50 to 0x180006ce2 (146 bytes)\n; \n; 19 xrefs:\n; > cocos2d::CCNode::addChild @ 0x180002bcf\n; > cocos2d::CCNode::childrenAlloc @ 0x180002dce\n; > cocos2d::CCDictionary::allKeys @ 0x180009944\n; > cocos2d::CCAnimate::reverse @ 0x1800360d9\n; > cocos2d::CCLayerMultiplex::initWithArray @ 0x180051e52\n; > cocos2d::CCLayerMultiplex::initWithLayers @ 0x1800521c5\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008d9cf\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008dde8\n; > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x180096789\n; > cocos2d::CCNotificationCenter::postNotification @ 0x180096df1\n; > cocos2d::CCNotificationCenter::postNotification @ 0x180096f02\n; > cocos2d::CCNotificationCenter::sharedNotificationCenter @ 0x180097298\n; > cocos2d::CCTMXMapInfo::internalInit @ 0x1800b328d\n; > cocos2d::CCTouchDispatcher::init @ 0x1800b69a2\n; > cocos2d::CCTouchDispatcher::init @ 0x1800b69b8\n; > cocos2d::CCTouchDispatcher::init @ 0x1800b69ce\n; > cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c542a\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7960\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180006c50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180006c55\npush    rdi                                                            ; +0xa, 0x180006c5a\nsub     rsp, 20h                                                       ; +0xb, 0x180006c5b\nmov     esi, ecx                                                       ; +0xf, 0x180006c5f\nmov     ecx, 40h ; '@'; Size                                           ; +0x11, 0x180006c61\ncall    sub_1800E4AC0                                                  ; +0x16, 0x180006c66\nmov     rdi, rax                                                       ; +0x1b, 0x180006c6b\nmov     [rsp+28h+arg_8], rax                                           ; +0x1e, 0x180006c6e\ntest    rax, rax                                                       ; +0x23, 0x180006c73\njz      short loc_180006CAC                                            ; +0x26, 0x180006c76\nmov     rcx, rax; this                                                 ; +0x28, 0x180006c78\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2b, 0x180006c7b\nnop                                                                    ; +0x30, 0x180006c80\nlea     rax, ??_7CCArray@cocos2d@@6B@; const cocos2d::CCArray::`vftable' ; +0x31, 0x180006c81\nmov     [rdi], rax                                                     ; +0x38, 0x180006c88\nmov     qword ptr [rdi+38h], 0                                         ; +0x3b, 0x180006c8b\nlea     rcx, [rdi+38h]                                                 ; +0x43, 0x180006c93\ncall    sub_1800A16E0                                                  ; +0x47, 0x180006c97\nmov     ecx, 1; Count                                                  ; +0x4c, 0x180006c9c\ncall    sub_1800A1920                                                  ; +0x51, 0x180006ca1\nmov     [rdi+38h], rax                                                 ; +0x56, 0x180006ca6\njmp     short loc_180006CAE                                            ; +0x5a, 0x180006caa\nxor     edi, edi                                                       ; +0x5c, 0x180006cac\ntest    rdi, rdi                                                       ; +0x5e, 0x180006cae\njz      short loc_180006CCF                                            ; +0x61, 0x180006cb1\nlea     rcx, [rdi+38h]                                                 ; +0x63, 0x180006cb3\ncall    sub_1800A16E0                                                  ; +0x67, 0x180006cb7\nmov     ecx, esi; Count                                                ; +0x6c, 0x180006cbc\ncall    sub_1800A1920                                                  ; +0x6e, 0x180006cbe\nmov     [rdi+38h], rax                                                 ; +0x73, 0x180006cc3\nmov     rcx, rdi; this                                                 ; +0x77, 0x180006cc7\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7a, 0x180006cca\nmov     rax, rdi                                                       ; +0x7f, 0x180006ccf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x82, 0x180006cd2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x87, 0x180006cd7\nadd     rsp, 20h                                                       ; +0x8c, 0x180006cdc\npop     rdi                                                            ; +0x90, 0x180006ce0\nretn                                                                   ; +0x91, 0x180006ce1", "xrefs": ["cocos2d::CCNode::addChild @ 0x180002bcf", "cocos2d::CCNode::childrenAlloc @ 0x180002dce", "cocos2d::CCDictionary::allKeys @ 0x180009944", "cocos2d::CCAnimate::reverse @ 0x1800360d9", "cocos2d::CCLayerMultiplex::initWithArray @ 0x180051e52", "cocos2d::CCLayerMultiplex::initWithLayers @ 0x1800521c5", "cocos2d::CCAnimationCache::parseVersion1 @ 0x18008d9cf", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008dde8", "cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x180096789", "cocos2d::CCNotificationCenter::postNotification @ 0x180096df1", "cocos2d::CCNotificationCenter::postNotification @ 0x180096f02", "cocos2d::CCNotificationCenter::sharedNotificationCenter @ 0x180097298", "cocos2d::CCTMXMapInfo::internalInit @ 0x1800b328d", "cocos2d::CCTouchDispatcher::init @ 0x1800b69a2", "cocos2d::CCTouchDispatcher::init @ 0x1800b69b8", "cocos2d::CCTouchDispatcher::init @ 0x1800b69ce", "cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c542a", "<???> @ 0x18014cf68", "<???> @ 0x1801b7960"], "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"}