//
// cocos2d::CCLayerColor::create_2 from 0x1004abb10 to 0x1004abcbf (431 bytes)
//
// 0 xrefs:
//
// 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 *cocos2d::CCLayerColor::create_2()
{
_QWORD *v0; // rbx
__int64 v1; // rax
int v3; // [rsp+4h] [rbp-1Ch] BYREF
_QWORD v4[3]; // [rsp+8h] [rbp-18h] BYREF
v0 = operator new(0x220u);
cocos2d::CCNode::CCNode((__int64)v0);
*v0 = off_100B53A90;
v0[40] = off_100B53F20;
v0[41] = &off_100B53F90;
v0[42] = off_100B53FA8;
v0[43] = off_100B53FC8;
v0[44] = off_100B53FF0;
*((_DWORD *)v0 + 90) = 0;
*((_BYTE *)v0 + 364) = 0;
*((_OWORD *)v0 + 23) = 0;
*((_OWORD *)v0 + 24) = 0;
*((_DWORD *)v0 + 100) = 0;
*((_BYTE *)v0 + 287) = 1;
sub_100278250((float *)v4, 0.5, 0.5);
(*(void (__fastcall **)(_QWORD *, _QWORD *))(*v0 + 296LL))(v0, v4);
v0[52] = -1;
*((_WORD *)v0 + 212) = 0;
*v0 = off_100B546A0;
v0[40] = off_100B54BC8;
v0[41] = &off_100B54C38;
v0[42] = off_100B54C50;
v0[43] = off_100B54C70;
v0[44] = off_100B54C98;
v0[51] = off_100B54CC8;
v0[54] = off_100B54D48;
v0[67] = 0x30300000001LL;
v1 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, v1);
v3 = 0;
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *, int *, float, float))(*v0 + 1264LL))(
v0,
&v3,
*(float *)v4,
*((float *)v4 + 1)) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);
return nullptr;
}
return v0;
}