//
// cocos2d::CCLayerMultiplex::create from 0x1800518c0 to 0x180051941 (129 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayerMultiplex::createWithLayer @ 0x180051a42
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc100
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:45 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCLayerMultiplex *cocos2d::CCLayerMultiplex::create(struct cocos2d::CCLayer *a1, ...)
{
cocos2d::CCLayerMultiplex *v1; // rax
cocos2d::CCObject *v2; // rbx
va_list va; // [rsp+58h] [rbp+10h] BYREF
va_start(va, a1);
v1 = (cocos2d::CCLayerMultiplex *)sub_1800E4AC0(0x1A8u);
if ( v1 )
v2 = cocos2d::CCLayerMultiplex::CCLayerMultiplex(v1);
else
v2 = nullptr;
if ( v2 )
{
if ( cocos2d::CCLayerMultiplex::initWithLayers(v2, a1, va) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
}
return nullptr;
}