//
// ConfigureHSVWidget::createTextInputNode from 0x100430780 to 0x100430992 (530 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::init @ 0x10042ffa0
// > ConfigureHSVWidget::init @ 0x100430119
// > ConfigureHSVWidget::init @ 0x10043028a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall ConfigureHSVWidget::createTextInputNode(ConfigureHSVWidget *a1, cocos2d::CCPoint a2, int a3)
{
unsigned int v3; // edx
cocos2d::extension::CCScale9Sprite *v5; // r15
CCTextInputNode *v6; // r12
__int64 v7; // rax
unsigned int v8; // ebx
float v9[4]; // [rsp+8h] [rbp-68h] BYREF
double v10; // [rsp+18h] [rbp-58h] BYREF
unsigned __int64 v11; // [rsp+20h] [rbp-50h] BYREF
std::string v12; // [rsp+28h] [rbp-48h] BYREF
unsigned int v13; // [rsp+44h] [rbp-2Ch]
cocos2d::CCRect v14; // 0:xmm0_8.8,8:xmm1_8.8
v13 = v3;
v14.origin = 0;
v14.size = 0;
sub_10028CC00((__int64)v9, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v5 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v14);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v5->setOpacity)(v5, 100);
sub_10028CBF0(v9, 60.0, 30.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v5->setContentSize)(v5, v9);
((void (__fastcall *)(ConfigureHSVWidget *, cocos2d::extension::CCScale9Sprite *, __int64))a1->addChild_0)(
a1,
v5,
0xFFFFFFFFLL);
sub_10028CBE0((float *)&v11, 50.0, 0.0);
sub_10028CCE0(&v10, *(unsigned __int64 **)&a3, &v11);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v5->setPosition)(v5, &v10);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v5->setScale)(v5, 0.60000002);
v6 = CCTextInputNode::create(30.000002, 24.0, "Num", "Thonburi", 24, "bigFont.fnt");
((void (__fastcall *)(ConfigureHSVWidget *, CCTextInputNode *, __int64))a1->addChild_0)(a1, v6, 20);
v7 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v5->getPosition)(v5);
((void (__fastcall *)(CCTextInputNode *, __int64))v6->setPosition)(v6, v7);
CCTextInputNode::setMaxLabelScale(v6, 0.36000001);
CCTextInputNode::setMaxLabelWidth(v6, 60.0);
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))v6->m_textField->setVisible)(v6->m_textField, 0);
v6->m_maxLabelLength = 5;
v6->m_valueType = Float;
v12.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24;
strcpy(v12.__r_.__value_.__s.__data_, "0123456789.-");
CCTextInputNode::setAllowedChars((std::string *)v6, &v12);
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v12.__r_.__value_.__l.__data_);
v8 = v13;
((void (__fastcall *)(CCTextInputNode *, _QWORD))v6->setTag)(v6, v13);
v6->m_delegate = &a1->TextInputDelegate;
v6->m_numberInput = 1;
cocos2d::CCDictionary::setObject(a1->m_inputs, v6, (int)v8);
}