{"type": "func", "start": 6442777504, "end": 6442777621, "name": "cocos2d::CCLayerMultiplex::createWithArray", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::createWithArray from 0x18004fba0 to 0x18004fc15 (117 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1e84\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=1\nstruct cocos2d::CCLayerMultiplex *__fastcall cocos2d::CCLayerMultiplex::createWithArray(struct cocos2d::CCArray *a1)\n{\n  cocos2d::CCLayerMultiplex *v2; // rax\n  cocos2d::CCLayerMultiplex *v3; // rbx\n\n  v2 = (cocos2d::CCLayerMultiplex *)operator new(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::CCLayerMultiplex *, __int64))v3->~CCLayerMultiplex)(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::createWithArray from 0x18004fba0 to 0x18004fc15 (117 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1e84\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, 0x18004fba0\npush    rdi                                                            ; +0x5, 0x18004fba5\nsub     rsp, 20h                                                       ; +0x6, 0x18004fba6\nmov     rdi, rcx                                                       ; +0xa, 0x18004fbaa\nmov     ecx, 1A8h; Size                                                ; +0xd, 0x18004fbad\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x18004fbb2\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x18004fbb7\ntest    rax, rax                                                       ; +0x1c, 0x18004fbbc\njz      short loc_18004FBCE                                            ; +0x1f, 0x18004fbbf\nmov     rcx, rax; this                                                 ; +0x21, 0x18004fbc1\ncall    ??0CCLayerMultiplex@cocos2d@@QEAA@XZ; cocos2d::CCLayerMultiplex::CCLayerMultiplex(void) ; +0x24, 0x18004fbc4\nmov     rbx, rax                                                       ; +0x29, 0x18004fbc9\njmp     short loc_18004FBD0                                            ; +0x2c, 0x18004fbcc\nxor     ebx, ebx                                                       ; +0x2e, 0x18004fbce\ntest    rbx, rbx                                                       ; +0x30, 0x18004fbd0\njz      short loc_18004FC07                                            ; +0x33, 0x18004fbd3\nmov     rdx, rdi; struct cocos2d::CCArray *                            ; +0x35, 0x18004fbd5\nmov     rcx, rbx; this                                                 ; +0x38, 0x18004fbd8\ncall    ?initWithArray@CCLayerMultiplex@cocos2d@@QEAA_NPEAVCCArray@2@@Z; cocos2d::CCLayerMultiplex::initWithArray(cocos2d::CCArray *) ; +0x3b, 0x18004fbdb\nmov     rcx, rbx; this                                                 ; +0x40, 0x18004fbe0\ntest    al, al                                                         ; +0x43, 0x18004fbe3\njz      short loc_18004FBFA                                            ; +0x45, 0x18004fbe5\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x47, 0x18004fbe7\nmov     rax, rbx                                                       ; +0x4c, 0x18004fbec\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4f, 0x18004fbef\nadd     rsp, 20h                                                       ; +0x54, 0x18004fbf4\npop     rdi                                                            ; +0x58, 0x18004fbf8\nretn                                                                   ; +0x59, 0x18004fbf9\nmov     rax, [rbx]                                                     ; +0x5a, 0x18004fbfa\nmov     edx, 1                                                         ; +0x5d, 0x18004fbfd\ncall    qword ptr [rax+8]                                              ; +0x62, 0x18004fc02\nxor     ebx, ebx                                                       ; +0x65, 0x18004fc05\nmov     rax, rbx                                                       ; +0x67, 0x18004fc07\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6a, 0x18004fc0a\nadd     rsp, 20h                                                       ; +0x6f, 0x18004fc0f\npop     rdi                                                            ; +0x73, 0x18004fc13\nretn                                                                   ; +0x74, 0x18004fc14", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1e84"], "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"}