//
// ColorChannelSprite::create from 0x1002c3630 to 0x1002c36b7 (135 bytes)
//
// 9 xrefs:
// > CustomizeObjectLayer::init @ 0x1001d871a
// > GJColorSetupLayer::init @ 0x1001eebc3
// > LevelSettingsLayer::init @ 0x100255bd3
// > LevelSettingsLayer::init @ 0x100255c4e
// > LevelSettingsLayer::init @ 0x100255cc2
// > LevelSettingsLayer::init @ 0x100255d36
// > LevelSettingsLayer::init @ 0x100255daa
// > LevelSettingsLayer::init @ 0x100255e1e
// > CharacterColorPage::createColorMenu @ 0x10073d366
//
// 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:28:06 +0000
//
char *ColorChannelSprite::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x270u);
cocos2d::CCSprite::CCSprite((__int64)v0);
*(_QWORD *)v0 = off_100B10E60;
*((_QWORD *)v0 + 40) = off_100B11348;
*((_QWORD *)v0 + 43) = off_100B113C8;
*(_OWORD *)(v0 + 600) = 0;
*((_QWORD *)v0 + 77) = 0;
if ( (unsigned __int8)cocos2d::CCSprite::initWithSpriteFrameName((__int64)v0, (__int64)"GJ_colorBtn_001.png", 0.0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}