{"type": "func", "start": 6442479328, "end": 6442479498, "name": "cocos2d::CCArray::createWithObject", "pseudocode": "// \n// cocos2d::CCArray::createWithObject from 0x180006ee0 to 0x180006f8a (170 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7984\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::createWithObject(struct cocos2d::CCObject *a1)\n{\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // rdi\n  __int64 v4; // rax\n\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    sub_1800A16E0((char *)v3 + 56);\n    v4 = sub_1800A1920(1u);\n    *((_QWORD *)v3 + 7) = v4;\n    sub_1800A12A0(v4, a1);\n    cocos2d::CCObject::autorelease(v3);\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCArray::createWithObject from 0x180006ee0 to 0x180006f8a (170 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7984\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, 0x180006ee0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180006ee5\npush    rdi                                                            ; +0xa, 0x180006eea\nsub     rsp, 20h                                                       ; +0xb, 0x180006eeb\nmov     rsi, rcx                                                       ; +0xf, 0x180006eef\nmov     ecx, 40h ; '@'; Size                                           ; +0x12, 0x180006ef2\ncall    sub_1800E4AC0                                                  ; +0x17, 0x180006ef7\nmov     rdi, rax                                                       ; +0x1c, 0x180006efc\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x180006eff\ntest    rax, rax                                                       ; +0x24, 0x180006f04\njz      short loc_180006F3D                                            ; +0x27, 0x180006f07\nmov     rcx, rax; this                                                 ; +0x29, 0x180006f09\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2c, 0x180006f0c\nnop                                                                    ; +0x31, 0x180006f11\nlea     rax, ??_7CCArray@cocos2d@@6B@; const cocos2d::CCArray::`vftable' ; +0x32, 0x180006f12\nmov     [rdi], rax                                                     ; +0x39, 0x180006f19\nmov     qword ptr [rdi+38h], 0                                         ; +0x3c, 0x180006f1c\nlea     rcx, [rdi+38h]                                                 ; +0x44, 0x180006f24\ncall    sub_1800A16E0                                                  ; +0x48, 0x180006f28\nmov     ecx, 1; Count                                                  ; +0x4d, 0x180006f2d\ncall    sub_1800A1920                                                  ; +0x52, 0x180006f32\nmov     [rdi+38h], rax                                                 ; +0x57, 0x180006f37\njmp     short loc_180006F3F                                            ; +0x5b, 0x180006f3b\nxor     edi, edi                                                       ; +0x5d, 0x180006f3d\ntest    rdi, rdi                                                       ; +0x5f, 0x180006f3f\njz      short loc_180006F77                                            ; +0x62, 0x180006f42\nlea     rcx, [rdi+38h]                                                 ; +0x64, 0x180006f44\ncall    sub_1800A16E0                                                  ; +0x68, 0x180006f48\nlea     rcx, [rdi+38h]                                                 ; +0x6d, 0x180006f4d\ncall    sub_1800A16E0                                                  ; +0x71, 0x180006f51\nmov     ecx, 1; Count                                                  ; +0x76, 0x180006f56\ncall    sub_1800A1920                                                  ; +0x7b, 0x180006f5b\nmov     [rdi+38h], rax                                                 ; +0x80, 0x180006f60\nmov     rdx, rsi                                                       ; +0x84, 0x180006f64\nmov     rcx, rax                                                       ; +0x87, 0x180006f67\ncall    sub_1800A12A0                                                  ; +0x8a, 0x180006f6a\nmov     rcx, rdi; this                                                 ; +0x8f, 0x180006f6f\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x92, 0x180006f72\nmov     rax, rdi                                                       ; +0x97, 0x180006f77\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9a, 0x180006f7a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9f, 0x180006f7f\nadd     rsp, 20h                                                       ; +0xa4, 0x180006f84\npop     rdi                                                            ; +0xa8, 0x180006f88\nretn                                                                   ; +0xa9, 0x180006f89", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b7984"], "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"}