//
// SetupPulsePopup::updateColorLabels from 0x5ef400 to 0x5ef54c (332 bytes)
//
// 1 xrefs:
// > SetupPulsePopup::colorValueChanged @ 0x5ef5ae
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:26 +0000
//
int __fastcall SetupPulsePopup::updateColorLabels(SetupPulsePopup *this)
{
char v2; // r9
int v3; // r7
cocos2d::CCString *v4; // r0
const char *CString; // r8
size_t v6; // r0
int v7; // r7
cocos2d::CCString *v8; // r0
const char *v9; // r0
const char *v10; // r8
size_t v11; // r0
int v12; // r7
cocos2d::CCString *v13; // r0
const char *v14; // r0
char *v15; // r8
size_t v16; // r0
int v17; // r10
size_t v18; // r0
int result; // r0
unsigned __int8 v20; // [sp+4h] [bp-1Ch] BYREF
char v21; // [sp+5h] [bp-1Bh] BYREF
char *v22; // [sp+Ch] [bp-14h]
int v23; // [sp+10h] [bp-10h] BYREF
int v24; // [sp+14h] [bp-Ch]
int v25; // [sp+18h] [bp-8h]
v2 = *((_BYTE *)this + 568);
v3 = *((_DWORD *)this + 223);
*((_BYTE *)this + 568) = 1;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned __int8 *)this + 772));
v23 = 0;
v24 = 0;
v25 = 0;
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
std::string::__init(&v23, CString, v6);
CCTextInputNode::setString(v3, (int)&v23);
std::string::~string((int)&v23);
v7 = *((_DWORD *)this + 224);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned __int8 *)this + 773));
v9 = (const char *)cocos2d::CCString::getCString(v8);
v23 = 0;
v24 = 0;
v25 = 0;
v10 = v9;
v11 = strlen(v9);
std::string::__init(&v23, v10, v11);
CCTextInputNode::setString(v7, (int)&v23);
std::string::~string((int)&v23);
v12 = *((_DWORD *)this + 225);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned __int8 *)this + 774));
v14 = (const char *)cocos2d::CCString::getCString(v13);
v23 = 0;
v24 = 0;
v25 = 0;
v15 = (char *)v14;
v16 = strlen(v14);
std::string::__init(&v23, v15, v16);
CCTextInputNode::setString(v12, (int)&v23);
std::string::~string((int)&v23);
v17 = *((_DWORD *)this + 226);
ColorSelectPopup::colorToHex(&v20, *((_DWORD *)this + 193));
if ( (v20 & 1) == 0 )
v15 = &v21;
v23 = 0;
if ( (v20 & 1) != 0 )
v15 = v22;
v24 = 0;
v25 = 0;
v18 = strlen(v15);
std::string::__init(&v23, v15, v18);
CCTextInputNode::setString(v17, (int)&v23);
std::string::~string((int)&v23);
result = std::string::~string((int)&v20);
*((_BYTE *)this + 568) = v2;
return result;
}