//
// cocos2d::CCLayerColor::create_2 from 0x1004b2930 to 0x1004b2adf (431 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCLayerColor *__fastcall cocos2d::CCLayerColor::create_2()
{
cocos2d::CCLayerColor *v0; // rbx
int v2; // [rsp+4h] [rbp-1Ch] BYREF
float v3[6]; // [rsp+8h] [rbp-18h] BYREF
v0 = (cocos2d::CCLayerColor *)operator new(0x220u);
cocos2d::CCNode::CCNode((__int64)v0);
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayerColor_vtbl *)off_100948C20;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1009490A0;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100949110;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100949128;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100949148;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100949168;
*(_DWORD *)&v0->m_bTouchEnabled = 0;
v0->m_bMouseEnabled = 0;
*(_OWORD *)&v0->m_pScriptTouchHandlerEntry = 0;
*(_OWORD *)&v0->m_pScriptAccelerateHandlerEntry = 0;
v0->m_uPreviousPriority = 0;
v0->m_bIgnoreAnchorPointForPosition = 1;
sub_10028CBE0(v3, 0.5, 0.5);
((void (__fastcall *)(cocos2d::CCLayerColor *, float *))v0->setAnchorPoint)(v0, v3);
*(_QWORD *)&v0->_displayedOpacity = -1;
*(_WORD *)&v0->_cascadeOpacityEnabled = 0;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayerColor_vtbl *)off_1009497F0;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100949D08;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100949D78;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100949D90;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100949DB0;
v0->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100949DD0;
v0->cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100949DF8;
v0->cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_100949E78;
v0->m_tBlendFunc = (cocos2d::ccBlendFunc)0x30300000001LL;
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v3);
v2 = 0;
if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCLayerColor *, int *, float, float))v0->initWithColor)(
v0,
&v2,
v3[0],
v3[1]) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
((void (__fastcall *)(cocos2d::CCLayerColor *))v0->~CCLayerColor_0)(v0);
return nullptr;
}
return v0;
}