//
// SetupPulsePopup::colorSelectClosed from 0x5ecc20 to 0x5ecd54 (308 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupPulsePopup::colorSelectClosed @ 0x5ecd64
//
// 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:24 +0000
//
char *__fastcall SetupPulsePopup::colorSelectClosed(
char *this,
GJSpecialColorSelect *a2,
GJSpecialColorSelect *a3,
int a4)
{
char *v5; // r4
int v7; // r8
float *v8; // r8
int v9; // r1
const char *v10; // r0
const char *v11; // r6
size_t v12; // r0
int v13; // r8
float *v14; // r8
int v15; // r1
const char *v16; // r0
const char *v17; // r6
size_t v18; // r0
char *v19; // [sp+0h] [bp-10h] BYREF
GJSpecialColorSelect *v20; // [sp+4h] [bp-Ch]
GJSpecialColorSelect *v21; // [sp+8h] [bp-8h]
int v22; // [sp+Ch] [bp-4h]
v19 = this;
v20 = a2;
v21 = a3;
v22 = a4;
v5 = this;
if ( (int)a3 >= 1000 )
{
if ( (*(int (__fastcall **)(GJSpecialColorSelect *))(*(_DWORD *)a2 + 32))(a2) == 7 )
{
v7 = *((_DWORD *)v5 + 202);
*((_DWORD *)v5 + 211) = a3;
v5[568] = 1;
v19 = nullptr;
v20 = nullptr;
v21 = nullptr;
std::string::__init((int *)&v19, "0", 1u);
CCTextInputNode::setString(v7, (int)&v19);
std::string::~string((int)&v19);
v8 = *((float **)v5 + 202);
v10 = GJSpecialColorSelect::textForColorIdx(a3, v9);
v19 = nullptr;
v20 = nullptr;
v21 = nullptr;
v11 = v10;
v12 = strlen(v10);
std::string::__init((int *)&v19, v11, v12);
CCTextInputNode::updateLabel(v8, (int)&v19);
std::string::~string((int)&v19);
this = (char *)SetupPulsePopup::updateCopyColor(v5);
}
else
{
this = (char *)(*(int (__fastcall **)(GJSpecialColorSelect *))(*(_DWORD *)a2 + 32))(a2);
if ( this != &byte_6 )
return this;
v13 = *((_DWORD *)v5 + 201);
*((_DWORD *)v5 + 210) = a3;
v5[568] = 1;
v19 = nullptr;
v20 = nullptr;
v21 = nullptr;
std::string::__init((int *)&v19, "0", 1u);
CCTextInputNode::setString(v13, (int)&v19);
std::string::~string((int)&v19);
v14 = *((float **)v5 + 201);
v16 = GJSpecialColorSelect::textForColorIdx(a3, v15);
v19 = nullptr;
v20 = nullptr;
v21 = nullptr;
v17 = v16;
v18 = strlen(v16);
std::string::__init((int *)&v19, v17, v18);
CCTextInputNode::updateLabel(v14, (int)&v19);
std::string::~string((int)&v19);
SetupPulsePopup::updateTargetID((SetupPulsePopup *)v5);
this = (char *)SetupTriggerPopup::updateEditorLabel((SetupTriggerPopup *)v5);
}
v5[568] = 0;
}
return this;
}