//
// SetupPulsePopup::colorSelectClosed from 0x1003b6fc8 to 0x1003b713c (372 bytes)
//
// 2 xrefs:
// > sub_1003B7204 @ 0x1003b7208
// > ??> @ 0x10080f3f8
//
// 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 __fastcall SetupPulsePopup::colorSelectClosed(SetupPulsePopup *a1, GJSpecialColorSelect *a2, int a3)
{
CCTextInputNode *m_colorIDInput; // x21
CCTextInputNode *v7; // x21
char *v8; // x0
bool *p_m_disableTextDelegate; // x20
CCTextInputNode *m_idInput; // x21
CCTextInputNode *v11; // x21
char *v12; // x0
std::string v13; // [xsp+0h] [xbp-80h] BYREF
void *v14[2]; // [xsp+18h] [xbp-68h] BYREF
char v15; // [xsp+2Fh] [xbp-51h]
std::string __p; // [xsp+30h] [xbp-50h] BYREF
__int64 *v17[2]; // [xsp+48h] [xbp-38h] BYREF
char v18; // [xsp+5Fh] [xbp-21h]
if ( a3 >= 1000 )
{
if ( ((unsigned int (__fastcall *)(GJSpecialColorSelect *))a2->getTag)(a2) == 7 )
{
a1->m_copyColorID = a3;
a1->m_disableTextDelegate = 1;
m_colorIDInput = a1->m_colorIDInput;
sub_100009900(v17, "0");
CCTextInputNode::setString(m_colorIDInput, v17);
if ( v18 < 0 )
operator delete(v17[0]);
v7 = a1->m_colorIDInput;
v8 = (char *)GJSpecialColorSelect::textForColorIdx(a3);
sub_100009900(&__p, v8);
CCTextInputNode::updateLabel(v7, &__p);
p_m_disableTextDelegate = &a1->m_disableTextDelegate;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
SetupPulsePopup::updateCopyColor(a1);
}
else
{
if ( ((unsigned int (__fastcall *)(GJSpecialColorSelect *))a2->getTag)(a2) != 6 )
return;
a1->m_targetGroupID = a3;
a1->m_disableTextDelegate = 1;
m_idInput = a1->m_idInput;
sub_100009900(v14, "0");
CCTextInputNode::setString(m_idInput, (__int64 **)v14);
if ( v15 < 0 )
operator delete(v14[0]);
v11 = a1->m_idInput;
v12 = (char *)GJSpecialColorSelect::textForColorIdx(a3);
sub_100009900(&v13, v12);
CCTextInputNode::updateLabel(v11, &v13);
p_m_disableTextDelegate = &a1->m_disableTextDelegate;
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v13.__r_.__value_.__l.__data_);
SetupPulsePopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
*p_m_disableTextDelegate = 0;
}
}