//
// SetColorIDPopup::colorSelectClosed from 0x5d7b74 to 0x5d7c1e (170 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetColorIDPopup::colorSelectClosed @ 0x5d7c2c
//
// 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:09 +0000
//
int __fastcall SetColorIDPopup::colorSelectClosed(int this, GJSpecialColorSelect *a2, GJSpecialColorSelect *a3, int a4)
{
int v5; // r5
int v6; // r8
float *v7; // r8
int v8; // r1
const char *v9; // r0
const char *v10; // r7
size_t v11; // r0
int v12; // [sp+0h] [bp-10h] BYREF
GJSpecialColorSelect *v13; // [sp+4h] [bp-Ch]
GJSpecialColorSelect *v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
v15 = a4;
v5 = this;
if ( (int)a3 >= 1000 )
{
v6 = *(_DWORD *)(this + 520);
*(_DWORD *)(this + 524) = a3;
*(_BYTE *)(this + 528) = 1;
v12 = 0;
v13 = nullptr;
v14 = nullptr;
std::string::__init(&v12, "0", 1u);
CCTextInputNode::setString(v6, (int)&v12);
std::string::~string((int)&v12);
v7 = *(float **)(v5 + 520);
v9 = (const char *)GJSpecialColorSelect::textForColorIdx(a3, v8);
v12 = 0;
v13 = nullptr;
v14 = nullptr;
v10 = v9;
v11 = strlen(v9);
std::string::__init(&v12, v10, v11);
CCTextInputNode::updateLabel(v7, (int)&v12);
std::string::~string((int)&v12);
this = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 680))(v5);
*(_BYTE *)(v5 + 528) = 0;
}
return this;
}