//
// sub_1004AD680 from 0x1004ad680 to 0x1004ad880 (512 bytes)
//
// 1 xrefs:
// > cocos2d::CCLayerMultiplex::createWithLayer @ 0x1004ad9e9
//
// 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 12:30:57 +0000
//
_QWORD *sub_1004AD680(__int64 a1, ...)
{
_QWORD *v1; // rbx
float v3; // [rsp+B8h] [rbp-38h] BYREF
va_list va; // [rsp+C0h] [rbp-30h] BYREF
va_start(va, a1);
v1 = operator new(0x1A0u);
cocos2d::CCNode::CCNode((__int64)v1);
*v1 = off_100B53A90;
v1[40] = off_100B53F20;
v1[41] = &off_100B53F90;
v1[42] = off_100B53FA8;
v1[43] = off_100B53FC8;
v1[44] = off_100B53FF0;
*((_DWORD *)v1 + 90) = 0;
*((_BYTE *)v1 + 364) = 0;
*((_OWORD *)v1 + 23) = 0;
*((_OWORD *)v1 + 24) = 0;
*((_DWORD *)v1 + 100) = 0;
*((_BYTE *)v1 + 287) = 1;
sub_100278250(&v3, 0.5, 0.5);
(*(void (__fastcall **)(_QWORD *, float *))(*v1 + 296LL))(v1, &v3);
*v1 = off_100B54D68;
v1[40] = off_100B551F8;
v1[41] = &off_100B55268;
v1[42] = off_100B55280;
v1[43] = off_100B552A0;
v1[44] = off_100B552C8;
*((_DWORD *)v1 + 101) = 0;
v1[51] = 0;
if ( (unsigned __int8)cocos2d::CCLayerMultiplex::initWithLayers(v1, a1, va) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v1 + 16LL))(v1);
return nullptr;
}
return v1;
}