{"type": "func", "start": 6442784960, "end": 6442785089, "name": "cocos2d::CCLayerMultiplex::create", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::create from 0x1800518c0 to 0x180051941 (129 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCLayerMultiplex::createWithLayer @ 0x180051a42\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc100\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 *cocos2d::CCLayerMultiplex::create(struct cocos2d::CCLayer *a1, ...)\n{\n  cocos2d::CCLayerMultiplex *v1; // rax\n  cocos2d::CCObject *v2; // rbx\n  va_list va; // [rsp+58h] [rbp+10h] BYREF\n\n  va_start(va, a1);\n  v1 = (cocos2d::CCLayerMultiplex *)sub_1800E4AC0(0x1A8u);\n  if ( v1 )\n    v2 = cocos2d::CCLayerMultiplex::CCLayerMultiplex(v1);\n  else\n    v2 = nullptr;\n  if ( v2 )\n  {\n    if ( cocos2d::CCLayerMultiplex::initWithLayers(v2, a1, va) )\n    {\n      cocos2d::CCObject::autorelease(v2);\n      return v2;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::create from 0x1800518c0 to 0x180051941 (129 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCLayerMultiplex::createWithLayer @ 0x180051a42\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc100\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], rcx                                               ; +0x0, 0x1800518c0\nmov     qword ptr [rsp+arg_8], rdx                                     ; +0x5, 0x1800518c5\nmov     [rsp+arg_10], r8                                               ; +0xa, 0x1800518ca\nmov     [rsp+arg_18], r9                                               ; +0xf, 0x1800518cf\npush    rbx                                                            ; +0x14, 0x1800518d4\npush    rdi                                                            ; +0x15, 0x1800518d5\nsub     rsp, 38h                                                       ; +0x16, 0x1800518d6\nlea     rdi, [rsp+48h+arg_8]                                           ; +0x1a, 0x1800518da\nmov     ecx, 1A8h; Size                                                ; +0x1f, 0x1800518df\ncall    sub_1800E4AC0                                                  ; +0x24, 0x1800518e4\nmov     [rsp+48h+var_28], rax                                          ; +0x29, 0x1800518e9\ntest    rax, rax                                                       ; +0x2e, 0x1800518ee\njz      short loc_180051900                                            ; +0x31, 0x1800518f1\nmov     rcx, rax; this                                                 ; +0x33, 0x1800518f3\ncall    ??0CCLayerMultiplex@cocos2d@@QEAA@XZ; cocos2d::CCLayerMultiplex::CCLayerMultiplex(void) ; +0x36, 0x1800518f6\nmov     rbx, rax                                                       ; +0x3b, 0x1800518fb\njmp     short loc_180051902                                            ; +0x3e, 0x1800518fe\nxor     ebx, ebx                                                       ; +0x40, 0x180051900\ntest    rbx, rbx                                                       ; +0x42, 0x180051902\njz      short loc_180051938                                            ; +0x45, 0x180051905\nmov     r8, rdi; char *                                                ; +0x47, 0x180051907\nmov     rdx, [rsp+48h+arg_0]; struct cocos2d::CCLayer *                ; +0x4a, 0x18005190a\nmov     rcx, rbx; this                                                 ; +0x4f, 0x18005190f\ncall    ?initWithLayers@CCLayerMultiplex@cocos2d@@QEAA_NPEAVCCLayer@2@PEAD@Z; cocos2d::CCLayerMultiplex::initWithLayers(cocos2d::CCLayer *,char *) ; +0x52, 0x180051912\nmov     rcx, rbx; this                                                 ; +0x57, 0x180051917\ntest    al, al                                                         ; +0x5a, 0x18005191a\njz      short loc_18005192D                                            ; +0x5c, 0x18005191c\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x5e, 0x18005191e\nmov     rax, rbx                                                       ; +0x63, 0x180051923\nadd     rsp, 38h                                                       ; +0x66, 0x180051926\npop     rdi                                                            ; +0x6a, 0x18005192a\npop     rbx                                                            ; +0x6b, 0x18005192b\nretn                                                                   ; +0x6c, 0x18005192c\nmov     rax, [rbx]                                                     ; +0x6d, 0x18005192d\nmov     edx, 1                                                         ; +0x70, 0x180051930\ncall    qword ptr [rax+8]                                              ; +0x75, 0x180051935\nxor     eax, eax                                                       ; +0x78, 0x180051938\nadd     rsp, 38h                                                       ; +0x7a, 0x18005193a\npop     rdi                                                            ; +0x7e, 0x18005193e\npop     rbx                                                            ; +0x7f, 0x18005193f\nretn                                                                   ; +0x80, 0x180051940", "xrefs": ["cocos2d::CCLayerMultiplex::createWithLayer @ 0x180051a42", "<???> @ 0x18014cf68", "<???> @ 0x1801bc100"], "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"}