//
// SetupPulsePopup::updateColorLabels from 0x1405d22c0 to 0x1405d249e (478 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::colorValueChanged @ 0x1405d19b3
// > ??> @ 0x14092e838
//
// This function is hookable on this platform (idp: pc, 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 11:34:55 +0000
//
void __fastcall SetupPulsePopup::updateColorLabels(__int64 a1)
{
char v2; // 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
char v15; // [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
v2 = *(_BYTE *)(a1 + 744);
*(_BYTE *)(a1 + 744) = 1;
v3 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned __int8 *)(a1 + 1120));
CString = cocos2d::CCString::getCString(v3);
v16 = 0;
v17 = 0;
v18 = 0;
v5 = -1;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003D230(&v16, CString, v6);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1304), &v16);
v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned __int8 *)(a1 + 1121));
v8 = cocos2d::CCString::getCString(v7);
v16 = 0;
v17 = 0;
v18 = 0;
v9 = -1;
do
++v9;
while ( v8[v9] );
sub_14003D230(&v16, v8, v9);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1312), &v16);
v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned __int8 *)(a1 + 1122));
v11 = cocos2d::CCString::getCString(v10);
v16 = 0;
v17 = 0;
v18 = 0;
v12 = -1;
do
++v12;
while ( v11[v12] );
sub_14003D230(&v16, v11, v12);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1320), &v16);
v14 = *(_WORD *)(a1 + 1120);
v15 = *(_BYTE *)(a1 + 1122);
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_14003D230(&v16, v13, v5);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1328), &v16);
sub_14003D310((__int64)Src);
*(_BYTE *)(a1 + 744) = v2;
}