//
// ColorSelectPopup::updateDurLabel from 0x73c088 to 0x73c1e8 (352 bytes)
//
// 3 xrefs:
// > ColorSelectPopup::sliderChanged @ 0x73c2c0
// > ColorSelectPopup::init @ 0x73d7d8
// > ??> @ 0x84768
//
// 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 ColorSelectPopup::updateDurLabel(ColorSelectPopup *a1)
{
float m_fadeTime; // s0
const unsigned __int8 *v3; // x0
const char *v4; // x1
cocos2d::CCString *v5; // x0
char *CString; // x1
CCTextInputNode *m_fadeTimeInput; // x22
unsigned __int8 *v8; // x0
unsigned int *v9; // x2
int v10; // w1
const unsigned __int8 *v11[2]; // [xsp+40h] [xbp+40h] BYREF
m_fadeTime = a1->m_fadeTime;
v3 = (const unsigned __int8 *)_stack_chk_guard;
a1->m_disableTextDelegate = 1;
v11[1] = v3;
if ( m_fadeTime == -99999.0 )
{
CString = "Mixed";
}
else
{
v4 = (const char *)(unsigned int)(int)m_fadeTime;
if ( (float)(m_fadeTime - (float)(int)v4) == 0.0 )
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v4);
else
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v4, m_fadeTime);
CString = (char *)cocos2d::CCString::getCString(v5);
}
m_fadeTimeInput = a1->m_fadeTimeInput;
sub_D153B8((int)v11, CString);
CCTextInputNode::setString(m_fadeTimeInput, v11);
v8 = (unsigned __int8 *)(v11[0] - 24);
if ( (__int64 *)v11[0] - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v11[0] - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *((_DWORD *)v11[0] - 2);
*((_DWORD *)v11[0] - 2) = v10 - 1;
}
if ( v10 <= 0 )
operator delete(v8);
}
a1->m_disableTextDelegate = 0;
}