{"type": "func", "start": 6442785216, "end": 6442785333, "name": "cocos2d::CCLayerMultiplex::createWithArray", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::createWithArray from 0x1800519c0 to 0x180051a35 (117 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc118\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:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCLayerMultiplex *__fastcall cocos2d::CCLayerMultiplex::createWithArray(struct cocos2d::CCArray *a1)\n{\n  cocos2d::CCLayerMultiplex *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n\n  v2 = (cocos2d::CCLayerMultiplex *)sub_1800E4AC0(0x1A8u);\n  if ( v2 )\n    v3 = cocos2d::CCLayerMultiplex::CCLayerMultiplex(v2);\n  else\n    v3 = nullptr;\n  if ( v3 )\n  {\n    if ( cocos2d::CCLayerMultiplex::initWithArray(v3, a1) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::createWithArray from 0x1800519c0 to 0x180051a35 (117 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc118\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:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800519c0\npush    rdi                                                            ; +0x5, 0x1800519c5\nsub     rsp, 20h                                                       ; +0x6, 0x1800519c6\nmov     rdi, rcx                                                       ; +0xa, 0x1800519ca\nmov     ecx, 1A8h; Size                                                ; +0xd, 0x1800519cd\ncall    sub_1800E4AC0                                                  ; +0x12, 0x1800519d2\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x1800519d7\ntest    rax, rax                                                       ; +0x1c, 0x1800519dc\njz      short loc_1800519EE                                            ; +0x1f, 0x1800519df\nmov     rcx, rax; this                                                 ; +0x21, 0x1800519e1\ncall    ??0CCLayerMultiplex@cocos2d@@QEAA@XZ; cocos2d::CCLayerMultiplex::CCLayerMultiplex(void) ; +0x24, 0x1800519e4\nmov     rbx, rax                                                       ; +0x29, 0x1800519e9\njmp     short loc_1800519F0                                            ; +0x2c, 0x1800519ec\nxor     ebx, ebx                                                       ; +0x2e, 0x1800519ee\ntest    rbx, rbx                                                       ; +0x30, 0x1800519f0\njz      short loc_180051A27                                            ; +0x33, 0x1800519f3\nmov     rdx, rdi; struct cocos2d::CCArray *                            ; +0x35, 0x1800519f5\nmov     rcx, rbx; this                                                 ; +0x38, 0x1800519f8\ncall    ?initWithArray@CCLayerMultiplex@cocos2d@@QEAA_NPEAVCCArray@2@@Z; cocos2d::CCLayerMultiplex::initWithArray(cocos2d::CCArray *) ; +0x3b, 0x1800519fb\nmov     rcx, rbx; this                                                 ; +0x40, 0x180051a00\ntest    al, al                                                         ; +0x43, 0x180051a03\njz      short loc_180051A1A                                            ; +0x45, 0x180051a05\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x47, 0x180051a07\nmov     rax, rbx                                                       ; +0x4c, 0x180051a0c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4f, 0x180051a0f\nadd     rsp, 20h                                                       ; +0x54, 0x180051a14\npop     rdi                                                            ; +0x58, 0x180051a18\nretn                                                                   ; +0x59, 0x180051a19\nmov     rax, [rbx]                                                     ; +0x5a, 0x180051a1a\nmov     edx, 1                                                         ; +0x5d, 0x180051a1d\ncall    qword ptr [rax+8]                                              ; +0x62, 0x180051a22\nxor     ebx, ebx                                                       ; +0x65, 0x180051a25\nmov     rax, rbx                                                       ; +0x67, 0x180051a27\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6a, 0x180051a2a\nadd     rsp, 20h                                                       ; +0x6f, 0x180051a2f\npop     rdi                                                            ; +0x73, 0x180051a33\nretn                                                                   ; +0x74, 0x180051a34", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc118"], "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"}