//
// cocos2d::CCLayerColor::create_1 from 0x1001499c8 to 0x100149a78 (176 bytes)
//
// 11 xrefs:
// > CCLightFlash::showFlash @ 0x100031208
// > SecretLayer5::showSuccessAnimation @ 0x100076010
// > PlayLayer::showNewBest @ 0x10011b79c
// > GJShopLayer::dialogClosed @ 0x10014d640
// > ScrollingLayer::init @ 0x1001b88bc
// > cocos2d::CCTransitionFade::onEnter @ 0x1001ce1c4
// > SecretLayer3::dialogClosed @ 0x100311668
// > LevelAreaLayer::fadeInsideTower @ 0x100345468
// > LevelAreaInnerLayer::onDoor @ 0x100346314
// > GJPathPage::playUnlockAnimation @ 0x1003ba40c
// > GJPathPage::unlockAnimationStep3 @ 0x1003baf04
//
// 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_1(const cocos2d::ccColor4B *a1)
{
cocos2d::CCLayerColor *v2; // x19
v2 = (cocos2d::CCLayerColor *)operator new(0x220u);
cocos2d::CCLayer::CCLayer((__int64)v2);
*(_WORD *)&v2->_cascadeOpacityEnabled = 0;
v2->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayerColor_vtbl *)&off_1007979C8;
v2->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100797EE0;
v2->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100797F50;
v2->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100797F68;
v2->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_100797F88;
v2->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100797FA8;
v2->cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100797FD0;
*(_QWORD *)&v2->_displayedOpacity = -1;
v2->cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_100798050;
v2->m_tBlendFunc = (cocos2d::ccBlendFunc)0x30300000001LL;
if ( cocos2d::CCLayerColor::initWithColor(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(cocos2d::CCLayerColor *))v2->~CCLayerColor_0)(v2);
return nullptr;
}
return v2;
}