//
// ColorSelectPopup::updateColorLabels from 0x14012a860 to 0x14012aa3e (478 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::colorValueChanged @ 0x14012a83b
// > ??> @ 0x140916bb0
//
// 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:27:00 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall ColorSelectPopup::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
_QWORD *v13; // rax
__int128 v14; // [rsp+30h] [rbp-50h] BYREF
__int64 v15; // [rsp+40h] [rbp-40h]
__int64 v16; // [rsp+48h] [rbp-38h]
_BYTE Src[32]; // [rsp+58h] [rbp-28h] BYREF
v2 = *(_BYTE *)(a1 + 744);
*(_BYTE *)(a1 + 744) = 1;
v3 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned __int8 *)(a1 + 1096));
CString = cocos2d::CCString::getCString(v3);
v14 = 0;
v15 = 0;
v16 = 0;
v5 = -1;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003D230(&v14, CString, v6);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1248), &v14);
v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned __int8 *)(a1 + 1097));
v8 = cocos2d::CCString::getCString(v7);
v14 = 0;
v15 = 0;
v16 = 0;
v9 = -1;
do
++v9;
while ( v8[v9] );
sub_14003D230(&v14, v8, v9);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1256), &v14);
v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned __int8 *)(a1 + 1098));
v11 = cocos2d::CCString::getCString(v10);
v14 = 0;
v15 = 0;
v16 = 0;
v12 = -1;
do
++v12;
while ( v11[v12] );
sub_14003D230(&v14, v11, v12);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1264), &v14);
v13 = (_QWORD *)ColorSelectPopup::colorToHex(Src);
if ( v13[3] > 0xFu )
v13 = (_QWORD *)*v13;
v14 = 0;
v15 = 0;
v16 = 0;
do
++v5;
while ( *((_BYTE *)v13 + v5) );
sub_14003D230(&v14, v13, v5);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1272), &v14);
sub_14003D310((__int64)Src);
*(_BYTE *)(a1 + 744) = v2;
}