//
// ColorChannelSprite::create from 0x10000d13c to 0x10000d1c4 (136 bytes)
//
// 9 xrefs:
// > CustomizeObjectLayer::init @ 0x100056e04
// > CharacterColorPage::createColorMenu @ 0x100153520
// > LevelSettingsLayer::init @ 0x10020ae68
// > LevelSettingsLayer::init @ 0x10020aee0
// > LevelSettingsLayer::init @ 0x10020af4c
// > LevelSettingsLayer::init @ 0x10020afb8
// > LevelSettingsLayer::init @ 0x10020b024
// > LevelSettingsLayer::init @ 0x10020b090
// > sub_100220E68 @ 0x10022115c
//
// This function is hookable on this platform (idp: arm, 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 10:57:14 +0000
//
_QWORD *ColorChannelSprite::create()
{
_QWORD *v0; // x19
v0 = operator new(0x270u);
cocos2d::CCSprite::CCSprite();
*v0 = off_1008AE870;
v0[40] = off_1008AED58;
v0[43] = off_1008AEDD8;
v0[75] = 0;
v0[77] = 0;
v0[76] = 0;
if ( (unsigned int)cocos2d::CCSprite::initWithSpriteFrameName(v0, "GJ_colorBtn_001.png") )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);
return nullptr;
}
return v0;
}