//
// SetupPulsePopup::updateColorLabels from 0x14043cbc0 to 0x14043cd9e (478 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::colorValueChanged @ 0x14043c253
// > ??> @ 0x1406da100
//
// 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 SetupPulsePopup::updateColorLabels(SetupPulsePopup *a1)
{
bool m_disableTextDelegate; // si
cocos2d::CCString *v3; // rax
const char *CString; // rax
size_t v5; // rbx
size_t v6; // r8
cocos2d::CCString *v7; // rax
const char *v8; // rax
size_t v9; // r8
cocos2d::CCString *v10; // rax
const char *v11; // rax
size_t v12; // r8
__int128 *v13; // rax
__int16 v14; // [rsp+20h] [rbp-60h] BYREF
GLubyte b; // [rsp+22h] [rbp-5Eh]
__int128 v16; // [rsp+30h] [rbp-50h] BYREF
__int64 v17; // [rsp+40h] [rbp-40h]
__int64 v18; // [rsp+48h] [rbp-38h]
__int128 Src[2]; // [rsp+58h] [rbp-28h] BYREF
m_disableTextDelegate = a1->m_disableTextDelegate;
a1->m_disableTextDelegate = 1;
v3 = cocos2d::CCString::createWithFormat("%i", a1->m_currentColor.r);
CString = cocos2d::CCString::getCString(v3);
v16 = 0;
v17 = 0;
v18 = 0;
v5 = -1;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003A930(&v16, CString, v6);
CCTextInputNode::setString((__int64)a1->m_rInput, &v16);
v7 = cocos2d::CCString::createWithFormat("%i", a1->m_currentColor.g);
v8 = cocos2d::CCString::getCString(v7);
v16 = 0;
v17 = 0;
v18 = 0;
v9 = -1;
do
++v9;
while ( v8[v9] );
sub_14003A930(&v16, v8, v9);
CCTextInputNode::setString((__int64)a1->m_gInput, &v16);
v10 = cocos2d::CCString::createWithFormat("%i", a1->m_currentColor.b);
v11 = cocos2d::CCString::getCString(v10);
v16 = 0;
v17 = 0;
v18 = 0;
v12 = -1;
do
++v12;
while ( v11[v12] );
sub_14003A930(&v16, v11, v12);
CCTextInputNode::setString((__int64)a1->m_bInput, &v16);
v14 = *(_WORD *)&a1->m_currentColor.r;
b = a1->m_currentColor.b;
v13 = ColorSelectPopup::colorToHex(Src, (unsigned __int8 *)&v14);
if ( *((_QWORD *)v13 + 3) > 0xFu )
v13 = *(__int128 **)v13;
v16 = 0;
v17 = 0;
v18 = 0;
do
++v5;
while ( *((_BYTE *)v13 + v5) );
sub_14003A930(&v16, v13, v5);
CCTextInputNode::setString((__int64)a1->m_hexInput, &v16);
sub_14003A830((__int64)Src);
a1->m_disableTextDelegate = m_disableTextDelegate;
}