//
// SetColorIDPopup::colorSelectClosed from 0xa24de8 to 0xa24f24 (316 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetColorIDPopup::colorSelectClosed @ 0xa24f28
// > ??> @ 0xb9dd0
// > ??> @ 0x1481268
//
// 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:41 +0000
//
__int64 __fastcall SetColorIDPopup::colorSelectClosed(SetColorIDPopup *this, GJSpecialColorSelect *a2, int a3)
{
_QWORD *v6; // x23
int v7; // w1
GJSpecialColorSelect *v8; // x0
__int64 v9; // x21
const char *v10; // x0
size_t v11; // x0
char *v12; // [xsp+48h] [xbp+48h]
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
__int64 v14; // [xsp+58h] [xbp+58h]
void *v15; // [xsp+60h] [xbp+60h]
if ( a3 > 999 )
{
*((_BYTE *)this + 676) = 1;
*((_DWORD *)this + 168) = a3;
v6 = *((_QWORD **)this + 83);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "0", 1u);
CCTextInputNode::setString(v6, (char *)&v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
v8 = (GJSpecialColorSelect *)(unsigned int)a3;
v9 = *((_QWORD *)this + 83);
v10 = (const char *)GJSpecialColorSelect::textForColorIdx(v8, v7);
v13 = 0;
v12 = (char *)v10;
v14 = 0;
v15 = nullptr;
v11 = strlen(v10);
std::string::__init(&v13, v12, v11);
CCTextInputNode::updateLabel(v9, (__int64)&v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
(*(void (__fastcall **)(SetColorIDPopup *))(*(_QWORD *)this + 1360LL))(this);
*((_BYTE *)this + 676) = 0;
}
return _stack_chk_guard;
}