//
// SetupPulsePopup::updateTextInputLabel from 0x14043cef0 to 0x14043d001 (273 bytes)
//
// 4 xrefs:
// > SetupPulsePopup::init @ 0x14043aa80
// > SetupPulsePopup::onSelectTargetMode @ 0x14043b138
// > SetupPulsePopup::onUpdateCustomColor @ 0x14043c3ab
// > ??> @ 0x1406da154
//
// 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::updateTextInputLabel(SetupPulsePopup *a1)
{
int m_targetGroupID; // edx
cocos2d::CCString *v3; // rax
const char *CString; // rax
const char *v5; // rcx
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_targetGroupID = a1->m_targetGroupID;
a1->m_disableTextDelegate = 1;
v3 = cocos2d::CCString::createWithFormat("%i", m_targetGroupID);
CString = cocos2d::CCString::getCString(v3);
if ( a1->m_targetGroupID >= 1000 )
{
v5 = "0";
if ( a1->m_pulseTargetType == 1 )
v5 = CString;
CString = v5;
}
v6 = -1;
v11 = 0;
v10 = 0;
v12 = 0;
v7 = -1;
do
++v7;
while ( CString[v7] );
sub_14003A930(&v10, CString, v7);
CCTextInputNode::setString((__int64)a1->m_idInput, &v10);
v8 = a1->m_targetGroupID;
if ( v8 >= 1000 && a1->m_pulseTargetType != 1 )
{
v9 = GJSpecialColorSelect::textForColorIdx(v8);
v11 = 0;
v10 = 0;
v12 = 0;
do
++v6;
while ( v9[v6] );
sub_14003A930(&v10, v9, v6);
CCTextInputNode::updateLabel(a1->m_idInput, (__int64)&v10);
}
a1->m_disableTextDelegate = 0;
}