//
// ColorSelectPopup::updateTextInputLabel from 0x4df6f4 to 0x4df7b2 (190 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::onUpdateCustomColor @ 0x4df810
// > ColorSelectPopup::init @ 0x4e0e0a
//
// 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
//
GJSpecialColorSelect *__fastcall ColorSelectPopup::updateTextInputLabel(ColorSelectPopup *this, int a2, int a3, int a4)
{
cocos2d::CCString *v5; // r0
const char *CString; // r7
size_t v7; // r0
int v8; // r8
int v9; // r1
GJSpecialColorSelect *result; // r0
float *v11; // r7
const char *v12; // r0
const char *v13; // r8
size_t v14; // r0
ColorSelectPopup *v15; // [sp+0h] [bp-10h] BYREF
int v16; // [sp+4h] [bp-Ch]
int v17; // [sp+8h] [bp-8h]
int v18; // [sp+Ch] [bp-4h]
v15 = this;
v16 = a2;
v17 = a3;
v18 = a4;
*((_BYTE *)this + 568) = 1;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *((const char **)this + 200));
CString = (const char *)cocos2d::CCString::getCString(v5);
if ( *((int *)this + 200) >= 1000 )
CString = "0";
v15 = nullptr;
v16 = 0;
v17 = 0;
v7 = strlen(CString);
v8 = *((_DWORD *)this + 197);
std::string::__init((int *)&v15, CString, v7);
CCTextInputNode::setString(v8, (int)&v15);
std::string::~string((int)&v15);
result = *((GJSpecialColorSelect **)this + 200);
if ( (int)result >= 1000 )
{
v11 = *((float **)this + 197);
v12 = (const char *)GJSpecialColorSelect::textForColorIdx(result, v9);
v15 = nullptr;
v16 = 0;
v17 = 0;
v13 = v12;
v14 = strlen(v12);
std::string::__init((int *)&v15, v13, v14);
CCTextInputNode::updateLabel(v11, (int)&v15);
result = (GJSpecialColorSelect *)std::string::~string((int)&v15);
}
*((_BYTE *)this + 568) = 0;
return result;
}