//
// SetupPulsePopup::updateColorLabels from 0xa49620 to 0xa4985c (572 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::colorValueChanged @ 0xa498dc
// > ??> @ 0xd7170
//
// This function is hookable on this platform (idp: arm, 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 13:00:01 +0000
//
__int64 __fastcall SetupPulsePopup::updateColorLabels(SetupPulsePopup *this)
{
__int64 v2; // x2
const char *v3; // x1
char v4; // w23
_QWORD *v5; // x24
cocos2d::CCString *v6; // x0
size_t v7; // x0
_QWORD *v8; // x24
cocos2d::CCString *v9; // x0
const char *v10; // x0
size_t v11; // x0
_QWORD *v12; // x22
cocos2d::CCString *v13; // x0
const char *v14; // x0
size_t v15; // x0
_QWORD *v16; // x24
char *v17; // x22
size_t v18; // x0
char *CString; // [xsp+48h] [xbp+48h]
char *v21; // [xsp+48h] [xbp+48h]
char *v22; // [xsp+48h] [xbp+48h]
char v23; // [xsp+58h] [xbp+58h] BYREF
_BYTE v24[7]; // [xsp+59h] [xbp+59h] BYREF
void *v25; // [xsp+68h] [xbp+68h]
__int64 v26; // [xsp+70h] [xbp+70h] BYREF
__int64 v27; // [xsp+78h] [xbp+78h]
void *v28; // [xsp+80h] [xbp+80h]
__int64 v29; // [xsp+88h] [xbp+88h]
v2 = _stack_chk_guard;
v3 = (const char *)*((unsigned __int8 *)this + 1136);
v4 = *((_BYTE *)this + 744);
*((_BYTE *)this + 744) = 1;
v29 = v2;
v5 = *((_QWORD **)this + 165);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v3);
v26 = 0;
CString = (char *)cocos2d::CCString::getCString(v6);
v27 = 0;
v28 = nullptr;
v7 = strlen(CString);
std::string::__init(&v26, CString, v7);
CCTextInputNode::setString(v5, (char *)&v26);
if ( (v26 & 1) != 0 )
operator delete(v28);
v8 = *((_QWORD **)this + 166);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned __int8 *)this + 1137));
v10 = (const char *)cocos2d::CCString::getCString(v9);
v26 = 0;
v21 = (char *)v10;
v27 = 0;
v28 = nullptr;
v11 = strlen(v10);
std::string::__init(&v26, v21, v11);
CCTextInputNode::setString(v8, (char *)&v26);
if ( (v26 & 1) != 0 )
operator delete(v28);
v12 = *((_QWORD **)this + 167);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned __int8 *)this + 1138));
v14 = (const char *)cocos2d::CCString::getCString(v13);
v26 = 0;
v22 = (char *)v14;
v27 = 0;
v28 = nullptr;
v15 = strlen(v14);
std::string::__init(&v26, v22, v15);
CCTextInputNode::setString(v12, (char *)&v26);
if ( (v26 & 1) != 0 )
operator delete(v28);
v16 = *((_QWORD **)this + 168);
v17 = v24;
ColorSelectPopup::colorToHex(*((_QWORD *)this + 142), (__int64)&v23);
if ( (v23 & 1) != 0 )
v17 = (char *)v25;
v26 = 0;
v27 = 0;
v28 = nullptr;
v18 = strlen(v17);
std::string::__init(&v26, v17, v18);
CCTextInputNode::setString(v16, (char *)&v26);
if ( (v26 & 1) != 0 )
operator delete(v28);
if ( (v23 & 1) != 0 )
operator delete(v25);
*((_BYTE *)this + 744) = v4;
return _stack_chk_guard;
}