//
// ColorChannelSprite::create from 0x5c20c4 to 0x5c2128 (100 bytes)
//
// 9 xrefs:
// > CustomizeObjectLayer::init @ 0x58042c
// > GJColorSetupLayer::init @ 0x5c1a36
// > CharacterColorPage::createColorMenu @ 0x69d482
// > LevelSettingsLayer::init @ 0x6ab7ca
// > LevelSettingsLayer::init @ 0x6ab820
// > LevelSettingsLayer::init @ 0x6ab8b2
// > LevelSettingsLayer::init @ 0x6ab900
// > LevelSettingsLayer::init @ 0x6ab94e
// > LevelSettingsLayer::init @ 0x6ab99c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:50 +0000
//
cocos2d::CCSprite *__fastcall ColorChannelSprite::create(ColorChannelSprite *this)
{
cocos2d::CCSprite *v1; // r4
int v2; // r3
cocos2d::CCSprite *v3; // r0
v1 = (cocos2d::CCSprite *)operator new(0x208u);
cocos2d::CCSprite::CCSprite(v1);
*(_DWORD *)v1 = &off_CB5680;
*((_DWORD *)v1 + 66) = &off_CB58F4;
*((_DWORD *)v1 + 70) = &off_CB5934;
*((_DWORD *)v1 + 127) = 0;
*((_DWORD *)v1 + 128) = 0;
*((_DWORD *)v1 + 129) = 0;
if ( ColorChannelSprite::init(v1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
v2 = *(_DWORD *)v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(cocos2d::CCSprite *))(v2 + 8))(v3);
}
return v1;
}