//
// SetupPulsePopup::updateCopyColorTextInputLabel from 0x14043d010 to 0x14043d111 (257 bytes)
//
// 3 xrefs:
// > SetupPulsePopup::init @ 0x14043aa88
// > SetupPulsePopup::onUpdateCopyColor @ 0x14043c415
// > ??> @ 0x1406da160
//
// 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::updateCopyColorTextInputLabel(SetupPulsePopup *a1)
{
int m_copyColorID; // edx
cocos2d::CCString *v3; // rax
const char *CString; // rax
const char *v5; // rdx
size_t v6; // rbx
size_t v7; // r8
int v8; // ecx
const char *v9; // rax
__int128 v10; // [rsp+20h] [rbp-28h] BYREF
__int64 v11; // [rsp+30h] [rbp-18h]
__int64 v12; // [rsp+38h] [rbp-10h]
m_copyColorID = a1->m_copyColorID;
a1->m_disableTextDelegate = 1;
v3 = cocos2d::CCString::createWithFormat("%i", m_copyColorID);
CString = cocos2d::CCString::getCString(v3);
v5 = "0";
v6 = -1;
if ( a1->m_copyColorID < 1000 )
v5 = CString;
v7 = -1;
v11 = 0;
v12 = 0;
v10 = 0;
do
++v7;
while ( v5[v7] );
sub_14003A930(&v10, v5, v7);
CCTextInputNode::setString((__int64)a1->m_colorIDInput, &v10);
v8 = a1->m_copyColorID;
if ( v8 >= 1000 )
{
v9 = GJSpecialColorSelect::textForColorIdx(v8);
v11 = 0;
v10 = 0;
v12 = 0;
do
++v6;
while ( v9[v6] );
sub_14003A930(&v10, v9, v6);
CCTextInputNode::updateLabel(a1->m_colorIDInput, (__int64)&v10);
}
a1->m_disableTextDelegate = 0;
}