//
// ConfigureHSVWidget::textChanged from 0x5e4f50 to 0x5e5058 (264 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0x5e506c
//
// 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:19 +0000
//
int __fastcall ConfigureHSVWidget::textChanged(int this, CCTextInputNode *a2)
{
int v2; // r6
int v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
char *v8; // r0
int v9; // r4
char *v10; // r0
double v11; // r0
cocos2d::CCString *v12; // r0
int v13; // r4
char *v14; // r0
double v15; // r0
cocos2d::CCString *v16; // r0
int v17; // r4
char v18; // [sp+0h] [bp-14h] BYREF
_BYTE v19[7]; // [sp+1h] [bp-13h] BYREF
char *v20; // [sp+8h] [bp-Ch]
v2 = this;
if ( !*(_BYTE *)(this + 317) )
{
v4 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
switch ( v4 )
{
case 2:
CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);
if ( (v18 & 1) != 0 )
v10 = v20;
else
v10 = v19;
v11 = atof(v10);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.2f",
(const char *)HIDWORD(v11),
v11);
v13 = cocos2d::CCString::floatValue(v12);
std::string::~string((int)&v18);
*(_DWORD *)(v2 + 296) = v13;
break;
case 3:
CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);
if ( (v18 & 1) != 0 )
v14 = v20;
else
v14 = v19;
v15 = atof(v14);
v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.2f",
(const char *)HIDWORD(v15),
v15);
v17 = cocos2d::CCString::floatValue(v16);
std::string::~string((int)&v18);
*(_DWORD *)(v2 + 300) = v17;
break;
case 1:
CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);
if ( (v18 & 1) != 0 )
v8 = v20;
else
v8 = v19;
v9 = atoi(v8);
std::string::~string((int)&v18);
v7 = -360;
if ( v9 > -360 )
v7 = v9;
if ( v7 >= 360 )
v7 = 360;
*(float *)(v2 + 292) = (float)v7;
break;
}
return ConfigureHSVWidget::updateSliders((ConfigureHSVWidget *)v2, v5, v6, *(float *)&v7);
}
return this;
}