//
// CustomizeObjectLayer::onNextColorChannel from 0x57eb0c to 0x57eb72 (102 bytes)
//
// 0 xrefs:
//
// 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:52:51 +0000
//
int __fastcall CustomizeObjectLayer::onNextColorChannel(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
int NextColorChannel; // r0
GJSpecialColorSelect *v5; // r5
int v6; // r6
ButtonSprite *ButtonByTag; // r0
v3 = GameManager::sharedState(this);
NextColorChannel = LevelEditorLayer::getNextColorChannel(*(LevelEditorLayer **)(v3 + 408));
v5 = (GJSpecialColorSelect *)NextColorChannel;
if ( (unsigned int)(NextColorChannel - 10) > 0x3DD )
{
v6 = NextColorChannel;
}
else
{
*((_DWORD *)this + 141) = NextColorChannel;
*((_BYTE *)this + 654) = 1;
CustomizeObjectLayer::updateCustomColorLabels(this);
v6 = 1008;
*((_BYTE *)this + 654) = 0;
}
CustomizeObjectLayer::updateSelected(this, (int)v5);
ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, v6);
CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);
CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);
return CustomizeObjectLayer::updateChannelLabel(this, v5);
}