{"type": "func", "start": 6442478352, "end": 6442478498, "name": "cocos2d::CCArray::createWithCapacity", "pseudocode": "// \n// cocos2d::CCArray::createWithCapacity from 0x180006b10 to 0x180006ba2 (146 bytes)\n// \n// 19 xrefs:\n// > cocos2d::CCNode::addChild @ 0x180002bff\n// > cocos2d::CCNode::childrenAlloc @ 0x180002d5e\n// > cocos2d::CCDictionary::allKeys @ 0x180009874\n// > cocos2d::CCAnimate::reverse @ 0x180035a29\n// > cocos2d::CCLayerMultiplex::initWithArray @ 0x180050032\n// > cocos2d::CCLayerMultiplex::initWithLayers @ 0x1800503a5\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a95d\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ace5\n// > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x180092f59\n// > cocos2d::CCNotificationCenter::postNotification @ 0x180093611\n// > cocos2d::CCNotificationCenter::postNotification @ 0x180093732\n// > cocos2d::CCNotificationCenter::sharedNotificationCenter @ 0x180093af6\n// > cocos2d::CCTMXMapInfo::internalInit @ 0x1800af93e\n// > cocos2d::CCTouchDispatcher::init @ 0x1800b2f42\n// > cocos2d::CCTouchDispatcher::init @ 0x1800b2f58\n// > cocos2d::CCTouchDispatcher::init @ 0x1800b2f6e\n// > cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c1b4a\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad93c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 *)operator new(0x40u);\n  v3 = v2;\n  if ( v2 )\n  {\n    cocos2d::CCObject::CCObject(v2);\n    v3->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCArray::`vftable';\n    v3[1].__vftable = nullptr;\n    sub_18009DA50(&v3[1]);\n    v3[1].__vftable = (cocos2d::CCObject_vtbl *)sub_18009DC90(1u);\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  if ( v3 )\n  {\n    sub_18009DA50(&v3[1]);\n    v3[1].__vftable = (cocos2d::CCObject_vtbl *)sub_18009DC90(v1);\n    cocos2d::CCObject::autorelease(v3);\n  }\n  return (struct cocos2d::CCArray *)v3;\n}", "assembly": "; \n; cocos2d::CCArray::createWithCapacity from 0x180006b10 to 0x180006ba2 (146 bytes)\n; \n; 19 xrefs:\n; > cocos2d::CCNode::addChild @ 0x180002bff\n; > cocos2d::CCNode::childrenAlloc @ 0x180002d5e\n; > cocos2d::CCDictionary::allKeys @ 0x180009874\n; > cocos2d::CCAnimate::reverse @ 0x180035a29\n; > cocos2d::CCLayerMultiplex::initWithArray @ 0x180050032\n; > cocos2d::CCLayerMultiplex::initWithLayers @ 0x1800503a5\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a95d\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ace5\n; > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x180092f59\n; > cocos2d::CCNotificationCenter::postNotification @ 0x180093611\n; > cocos2d::CCNotificationCenter::postNotification @ 0x180093732\n; > cocos2d::CCNotificationCenter::sharedNotificationCenter @ 0x180093af6\n; > cocos2d::CCTMXMapInfo::internalInit @ 0x1800af93e\n; > cocos2d::CCTouchDispatcher::init @ 0x1800b2f42\n; > cocos2d::CCTouchDispatcher::init @ 0x1800b2f58\n; > cocos2d::CCTouchDispatcher::init @ 0x1800b2f6e\n; > cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c1b4a\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad93c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180006b10\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180006b15\npush    rdi                                                            ; +0xa, 0x180006b1a\nsub     rsp, 20h                                                       ; +0xb, 0x180006b1b\nmov     esi, ecx                                                       ; +0xf, 0x180006b1f\nmov     ecx, 40h ; '@'; Size                                           ; +0x11, 0x180006b21\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x180006b26\nmov     rdi, rax                                                       ; +0x1b, 0x180006b2b\nmov     [rsp+28h+arg_8], rax                                           ; +0x1e, 0x180006b2e\ntest    rax, rax                                                       ; +0x23, 0x180006b33\njz      short loc_180006B6C                                            ; +0x26, 0x180006b36\nmov     rcx, rax; this                                                 ; +0x28, 0x180006b38\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2b, 0x180006b3b\nnop                                                                    ; +0x30, 0x180006b40\nlea     rax, ??_7CCArray@cocos2d@@6B@; const cocos2d::CCArray::`vftable' ; +0x31, 0x180006b41\nmov     [rdi], rax                                                     ; +0x38, 0x180006b48\nmov     qword ptr [rdi+38h], 0                                         ; +0x3b, 0x180006b4b\nlea     rcx, [rdi+38h]                                                 ; +0x43, 0x180006b53\ncall    sub_18009DA50                                                  ; +0x47, 0x180006b57\nmov     ecx, 1; Count                                                  ; +0x4c, 0x180006b5c\ncall    sub_18009DC90                                                  ; +0x51, 0x180006b61\nmov     [rdi+38h], rax                                                 ; +0x56, 0x180006b66\njmp     short loc_180006B6E                                            ; +0x5a, 0x180006b6a\nxor     edi, edi                                                       ; +0x5c, 0x180006b6c\ntest    rdi, rdi                                                       ; +0x5e, 0x180006b6e\njz      short loc_180006B8F                                            ; +0x61, 0x180006b71\nlea     rcx, [rdi+38h]                                                 ; +0x63, 0x180006b73\ncall    sub_18009DA50                                                  ; +0x67, 0x180006b77\nmov     ecx, esi; Count                                                ; +0x6c, 0x180006b7c\ncall    sub_18009DC90                                                  ; +0x6e, 0x180006b7e\nmov     [rdi+38h], rax                                                 ; +0x73, 0x180006b83\nmov     rcx, rdi; this                                                 ; +0x77, 0x180006b87\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7a, 0x180006b8a\nmov     rax, rdi                                                       ; +0x7f, 0x180006b8f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x82, 0x180006b92\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x87, 0x180006b97\nadd     rsp, 20h                                                       ; +0x8c, 0x180006b9c\npop     rdi                                                            ; +0x90, 0x180006ba0\nretn                                                                   ; +0x91, 0x180006ba1", "xrefs": ["cocos2d::CCNode::addChild @ 0x180002bff", "cocos2d::CCNode::childrenAlloc @ 0x180002d5e", "cocos2d::CCDictionary::allKeys @ 0x180009874", "cocos2d::CCAnimate::reverse @ 0x180035a29", "cocos2d::CCLayerMultiplex::initWithArray @ 0x180050032", "cocos2d::CCLayerMultiplex::initWithLayers @ 0x1800503a5", "cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a95d", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ace5", "cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x180092f59", "cocos2d::CCNotificationCenter::postNotification @ 0x180093611", "cocos2d::CCNotificationCenter::postNotification @ 0x180093732", "cocos2d::CCNotificationCenter::sharedNotificationCenter @ 0x180093af6", "cocos2d::CCTMXMapInfo::internalInit @ 0x1800af93e", "cocos2d::CCTouchDispatcher::init @ 0x1800b2f42", "cocos2d::CCTouchDispatcher::init @ 0x1800b2f58", "cocos2d::CCTouchDispatcher::init @ 0x1800b2f6e", "cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c1b4a", "<???> @ 0x1801438a8", "<???> @ 0x1801ad93c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}