//
// CustomizeObjectLayer::updateChannelLabel from 0x100058aa8 to 0x100058b18 (112 bytes)
//
// 7 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x100057ebc
// > CustomizeObjectLayer::onSelectColor @ 0x1000582f4
// > CustomizeObjectLayer::onUpdateCustomColor @ 0x10005837c
// > CustomizeObjectLayer::onNextColorChannel @ 0x1000587d0
// > CustomizeObjectLayer::onPaste @ 0x100058844
// > CustomizeObjectLayer::colorSetupClosed @ 0x100058d10
// > CustomizeObjectLayer::textChanged @ 0x100059458
//
// 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:46 +0000
//
__int64 __fastcall CustomizeObjectLayer::updateChannelLabel(__int64 a1, __int64 a2)
{
__int64 CString; // x0
__int64 v4; // x0
const char *v5; // x1
if ( (int)a2 < 1000 )
{
if ( (int)a2 < 1 )
{
v5 = " ";
return (*(__int64 (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 808) + 928LL))(
*(_QWORD *)(a1 + 808),
v5);
}
v4 = sub_1003065B0("%i", a2);
CString = cocos2d::CCString::getCString(v4);
}
else
{
CString = GJSpecialColorSelect::textForColorIdx(a2);
}
v5 = (const char *)CString;
return (*(__int64 (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 808) + 928LL))(*(_QWORD *)(a1 + 808), v5);
}