//
// SetupPulsePopup::colorSelectClosed from 0xa45f80 to 0xa461ac (556 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupPulsePopup::colorSelectClosed @ 0xa461b0
// > ??> @ 0x9d540
// > ??> @ 0x148a840
//
// 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 12:59:59 +0000
//
__int64 __fastcall SetupPulsePopup::colorSelectClosed(SetupPulsePopup *this, GJSpecialColorSelect *a2, int a3)
{
_QWORD *v6; // x23
GJSpecialColorSelect *v7; // x0
__int64 v8; // x20
char *v9; // x0
size_t v10; // x0
_QWORD *v11; // x23
GJSpecialColorSelect *v12; // x0
__int64 v13; // x20
char *v14; // x0
size_t v15; // x0
char *v17; // [xsp+48h] [xbp+48h]
char *v18; // [xsp+48h] [xbp+48h]
__int64 v19; // [xsp+50h] [xbp+50h] BYREF
__int64 v20; // [xsp+58h] [xbp+58h]
void *v21; // [xsp+60h] [xbp+60h]
if ( a3 > 999 )
{
if ( (*(unsigned int (__fastcall **)(GJSpecialColorSelect *))(*(_QWORD *)a2 + 64LL))(a2) == 7 )
{
*((_BYTE *)this + 744) = 1;
*((_DWORD *)this + 318) = a3;
v11 = *((_QWORD **)this + 151);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "0", 1u);
CCTextInputNode::setString(v11, (char *)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v12 = (GJSpecialColorSelect *)(unsigned int)a3;
v13 = *((_QWORD *)this + 151);
v14 = GJSpecialColorSelect::textForColorIdx(v12);
v19 = 0;
v18 = v14;
v20 = 0;
v21 = nullptr;
v15 = strlen(v14);
std::string::__init(&v19, v18, v15);
CCTextInputNode::updateLabel(v13, (__int64)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
SetupPulsePopup::updateCopyColor(this);
*((_BYTE *)this + 744) = 0;
}
else if ( (*(unsigned int (__fastcall **)(GJSpecialColorSelect *))(*(_QWORD *)a2 + 64LL))(a2) == 6 )
{
*((_BYTE *)this + 744) = 1;
*((_DWORD *)this + 317) = a3;
v6 = *((_QWORD **)this + 150);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "0", 1u);
CCTextInputNode::setString(v6, (char *)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v7 = (GJSpecialColorSelect *)(unsigned int)a3;
v8 = *((_QWORD *)this + 150);
v9 = GJSpecialColorSelect::textForColorIdx(v7);
v19 = 0;
v17 = v9;
v20 = 0;
v21 = nullptr;
v10 = strlen(v9);
std::string::__init(&v19, v17, v10);
CCTextInputNode::updateLabel(v8, (__int64)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
SetupPulsePopup::updateTargetID(this);
SetupTriggerPopup::updateEditorLabel(this);
*((_BYTE *)this + 744) = 0;
}
}
return _stack_chk_guard;
}