//
// CustomizeObjectLayer::updateChannelLabel from 0x10005028c to 0x1000502fc (112 bytes)
//
// 7 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x10004f6e8
// > CustomizeObjectLayer::onSelectColor @ 0x10004fad8
// > CustomizeObjectLayer::onUpdateCustomColor @ 0x10004fb60
// > CustomizeObjectLayer::onNextColorChannel @ 0x10004ffb4
// > CustomizeObjectLayer::onPaste @ 0x100050028
// > CustomizeObjectLayer::colorSetupClosed @ 0x1000504f4
// > CustomizeObjectLayer::textChanged @ 0x100050c3c
//
// 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 __fastcall CustomizeObjectLayer::updateChannelLabel(CustomizeObjectLayer *a1, int a2)
{
const char *CString; // x0
cocos2d::CCString *v4; // x0
const char *v5; // x1
if ( a2 < 1000 )
{
if ( a2 < 1 )
{
v5 = " ";
goto LABEL_6;
}
v4 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = cocos2d::CCString::getCString(v4);
}
else
{
CString = GJSpecialColorSelect::textForColorIdx(a2);
}
v5 = CString;
LABEL_6:
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_selectedColorLabel->setString)(
a1->m_selectedColorLabel,
v5);
}