//
// CustomizeObjectLayer::updateChannelLabel from 0x9834a0 to 0x983548 (168 bytes)
//
// 8 xrefs:
// > CustomizeObjectLayer::onUpdateCustomColor @ 0x983b74
// > CustomizeObjectLayer::onSelectColor @ 0x983d30
// > CustomizeObjectLayer::colorSetupClosed @ 0x983da4
// > CustomizeObjectLayer::onNextColorChannel @ 0x983e40
// > CustomizeObjectLayer::onPaste @ 0x983eec
// > CustomizeObjectLayer::onSelectMode @ 0x9841e0
// > CustomizeObjectLayer::textChanged @ 0x984a58
// > ??> @ 0x916d8
//
// 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 12:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::updateChannelLabel(CustomizeObjectLayer *this, GJSpecialColorSelect *a2)
{
cocos2d::CCString *v3; // x0
__int64 CString; // x0
__int64 v6; // x0
if ( (int)a2 > 999 )
{
v6 = GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)(unsigned int)a2, (int)a2);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 101) + 928LL))(*((_QWORD *)this + 101), v6);
}
else if ( (int)a2 <= 0 )
{
return (*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 101) + 928LL))(
*((_QWORD *)this + 101),
&byte_11E1A70);
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = cocos2d::CCString::getCString(v3);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 101) + 928LL))(
*((_QWORD *)this + 101),
CString);
}
}