//
// ColorChannelSprite::create from 0x1002d8ba0 to 0x1002d8c27 (135 bytes)
//
// 9 xrefs:
// > CustomizeObjectLayer::init @ 0x1001f636a
// > GJColorSetupLayer::init @ 0x10020b873
// > LevelSettingsLayer::init @ 0x10026bc53
// > LevelSettingsLayer::init @ 0x10026bcce
// > LevelSettingsLayer::init @ 0x10026bd42
// > LevelSettingsLayer::init @ 0x10026bdb6
// > LevelSettingsLayer::init @ 0x10026be2a
// > LevelSettingsLayer::init @ 0x10026be9e
// > CharacterColorPage::createColorMenu @ 0x10065dd16
//
// 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
//
ColorChannelSprite *__fastcall ColorChannelSprite::create()
{
__int64 v0; // rsi
char *v1; // rbx
v1 = (char *)operator new(0x270u);
cocos2d::CCSprite::CCSprite((__int64)v1, v0);
*(_QWORD *)v1 = off_100909678;
*((_QWORD *)v1 + 40) = off_100909B50;
*((_QWORD *)v1 + 43) = off_100909BD0;
*(_OWORD *)(v1 + 600) = 0;
*((_QWORD *)v1 + 77) = 0;
if ( cocos2d::CCSprite::initWithSpriteFrameName((cocos2d::CCSprite *)v1, "GJ_colorBtn_001.png") )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (ColorChannelSprite *)v1;
}