//
// ConfigureHSVWidget::textChanged from 0xa3a354 to 0xa3a528 (468 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0xa3a52c
// > ??> @ 0x93340
// > ??> @ 0x14868d0
//
// 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:53 +0000
//
__int64 __fastcall ConfigureHSVWidget::textChanged(ConfigureHSVWidget *this, CCTextInputNode *a2)
{
int v4; // w0
char *v5; // x0
double v6; // d0
const char *v7; // x1
cocos2d::CCString *v8; // x0
int v9; // s0
int v10; // w21
int v11; // w0
char *v12; // x0
double v13; // d0
const char *v14; // x1
cocos2d::CCString *v15; // x0
int v16; // s0
char *v17; // x22
int v19; // [xsp+30h] [xbp+30h]
int v20; // [xsp+30h] [xbp+30h]
__int64 v21[2]; // [xsp+40h] [xbp+40h] BYREF
char *v22; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 409) )
{
v4 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);
switch ( v4 )
{
case 2:
CCTextInputNode::getString(a2, v21);
v12 = (char *)v21 + 1;
if ( (v21[0] & 1) != 0 )
v12 = v22;
v13 = atof(v12);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", v14, v13);
cocos2d::CCString::floatValue(v15);
if ( (v21[0] & 1) != 0 )
{
v20 = v16;
operator delete(v22);
*((_DWORD *)this + 95) = v20;
}
else
{
*((_DWORD *)this + 95) = v16;
}
break;
case 3:
CCTextInputNode::getString(a2, v21);
v5 = (char *)v21 + 1;
if ( (v21[0] & 1) != 0 )
v5 = v22;
v6 = atof(v5);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", v7, v6);
cocos2d::CCString::floatValue(v8);
if ( (v21[0] & 1) != 0 )
{
v19 = v9;
operator delete(v22);
*((_DWORD *)this + 96) = v19;
}
else
{
*((_DWORD *)this + 96) = v9;
}
break;
case 1:
CCTextInputNode::getString(a2, v21);
if ( (v21[0] & 1) != 0 )
{
v17 = v22;
v10 = atoi(v22);
operator delete(v17);
}
else
{
v10 = atoi((const char *)v21 + 1);
}
if ( v10 < -360 )
v11 = -360;
else
v11 = v10;
if ( v11 > 360 )
v11 = 360;
*((float *)this + 94) = (float)v11;
break;
}
ConfigureHSVWidget::updateSliders(this);
}
return _stack_chk_guard;
}