//
// CustomizeObjectLayer::updateChannelLabel from 0x57e5c8 to 0x57e602 (58 bytes)
//
// 7 xrefs:
// > CustomizeObjectLayer::onSelectColor @ 0x57e994
// > CustomizeObjectLayer::colorSetupClosed @ 0x57eb00
// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb6e
// > CustomizeObjectLayer::onPaste @ 0x57ebe6
// > CustomizeObjectLayer::onSelectMode @ 0x57ee0e
// > CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee94
// > CustomizeObjectLayer::textChanged @ 0x57f31e
//
// 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::updateChannelLabel(CustomizeObjectLayer *this, GJSpecialColorSelect *a2)
{
const char *CString; // r0
cocos2d::CCString *v4; // r0
const char *v5; // r1
if ( (int)a2 < 1000 )
{
if ( (int)a2 <= 0 )
{
v5 = " ";
return (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 149) + 464))(
*((_DWORD *)this + 149),
v5);
}
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (const char *)cocos2d::CCString::getCString(v4);
}
else
{
CString = (const char *)GJSpecialColorSelect::textForColorIdx(a2, (int)a2);
}
v5 = CString;
return (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 149) + 464))(*((_DWORD *)this + 149), v5);
}