//
// ColorSelectPopup::colorSelectClosed from 0x4df814 to 0x4df948 (308 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ColorSelectPopup::colorSelectClosed @ 0x4df958
//
// 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:50:59 +0000
//
EffectGameObject *__fastcall ColorSelectPopup::colorSelectClosed(
EffectGameObject *this,
GJSpecialColorSelect *a2,
GJSpecialColorSelect *a3,
int a4)
{
EffectGameObject *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
EffectGameObject *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) == 6 )
{
v7 = *((_DWORD *)v5 + 197);
*((_DWORD *)v5 + 200) = a3;
*((_BYTE *)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 + 197);
v10 = (const char *)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);
ColorSelectPopup::updateCustomColorIdx(v5);
this = (EffectGameObject *)SetupTriggerPopup::updateEditorLabel(v5);
}
else
{
this = (EffectGameObject *)(*(int (__fastcall **)(GJSpecialColorSelect *))(*(_DWORD *)a2 + 32))(a2);
if ( this != (EffectGameObject *)&byte_7 )
return this;
v13 = *((_DWORD *)v5 + 211);
*((_DWORD *)v5 + 202) = a3;
*((_BYTE *)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 + 211);
v16 = (const char *)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);
this = ColorSelectPopup::updateCopyColor(v5);
}
*((_BYTE *)v5 + 568) = 0;
}
return this;
}