//
// ColorChannelSprite::create from 0x140362d80 to 0x140362e3f (191 bytes)
//
// 10 xrefs:
// > CharacterColorPage::createColorMenu @ 0x1400a18f2
// > CustomizeObjectLayer::init @ 0x140140af4
// > GJColorSetupLayer::init @ 0x14035eedd
// > LevelSettingsLayer::init @ 0x1404580b6
// > LevelSettingsLayer::init @ 0x140458137
// > LevelSettingsLayer::init @ 0x1404581b4
// > LevelSettingsLayer::init @ 0x140458230
// > LevelSettingsLayer::init @ 0x1404582ac
// > LevelSettingsLayer::init @ 0x140458328
// > ??> @ 0x1409214ac
//
// 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:30:53 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCSprite *ColorChannelSprite::create()
{
cocos2d::CCSprite *v0; // rbx
v0 = (cocos2d::CCSprite *)operator new(0x270u);
cocos2d::CCSprite::CCSprite(v0);
*(_QWORD *)v0 = &ColorChannelSprite::`vftable';
*((_QWORD *)v0 + 40) = &ColorChannelSprite::`vftable';
*((_QWORD *)v0 + 43) = &ColorChannelSprite::`vftable';
*((_QWORD *)v0 + 75) = 0;
*((_QWORD *)v0 + 76) = 0;
*((_QWORD *)v0 + 77) = 0;
if ( cocos2d::CCSprite::initWithSpriteFrameName(v0, "GJ_colorBtn_001.png") )
{
cocos2d::CCObject::autorelease(v0);
return v0;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
return nullptr;
}
}