//
// CustomizeObjectLayer::updateChannelLabel from 0x461a90 to 0x461aca (58 bytes)
//
// 7 xrefs:
// > CustomizeObjectLayer::textChanged @ 0x461e34
// > CustomizeObjectLayer::onUpdateCustomColor @ 0x461f00
// > CustomizeObjectLayer::onSelectColor @ 0x462008
// > CustomizeObjectLayer::colorSetupClosed @ 0x46205c
// > CustomizeObjectLayer::onNextColorChannel @ 0x4620ca
// > CustomizeObjectLayer::onPaste @ 0x462142
// > CustomizeObjectLayer::onSelectMode @ 0x46236a
//
// 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
//
void CustomizeObjectLayer::updateChannelLabel(CustomizeObjectLayer *a1, int a2)
{
const char *CString; // r0
cocos2d::CCString *v4; // r0
const unsigned __int8 *v5; // r1
if ( a2 < 1000 )
{
if ( a2 <= 0 )
{
v5 = " ";
goto LABEL_7;
}
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = cocos2d::CCString::getCString(v4);
}
else
{
CString = GJSpecialColorSelect::textForColorIdx(a2);
}
v5 = (const unsigned __int8 *)CString;
LABEL_7:
a1->m_selectedColorLabel->setString(a1->m_selectedColorLabel, v5);
}