//
// ConfigureHSVWidget::createTextInputNode from 0x1000ff904 to 0x1000ffb20 (540 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::init @ 0x1000ff280
// > ConfigureHSVWidget::init @ 0x1000ff3e8
// > ConfigureHSVWidget::init @ 0x1000ff554
//
// 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)
{
__int64 v3; // x2
__int64 v4; // x19
float32x2_t *v5; // x22
cocos2d::extension::CCScale9Sprite *v7; // x21
__n128 v8; // q0
__n128 v9; // q1
double v10; // d0
CCTextInputNode *v11; // x22
__int64 v12; // x0
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v14; // [xsp+1Fh] [xbp-51h]
float32x2_t v15; // [xsp+20h] [xbp-50h] BYREF
float32x2_t v16; // [xsp+28h] [xbp-48h] BYREF
float v17[4]; // [xsp+30h] [xbp-40h] BYREF
cocos2d::CCRect v18; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v4 = v3;
v5 = *(float32x2_t **)&a3;
sub_100022990(v17, 0.0, 0.0, 40.0, 40.0);
v7 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v18);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v7->setOpacity)(v7, 100);
sub_100022988(v17, 60.0, 30.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v7->setContentSize)(v7, v17);
v8 = ((__n128 (__fastcall *)(ConfigureHSVWidget *, cocos2d::extension::CCScale9Sprite *, __int64))a1->addChild_0)(
a1,
v7,
0xFFFFFFFFLL);
v8.n128_u32[0] = 1112014848;
v9.n128_u32[0] = 0;
sub_100022980(v8, v9, &v15);
*(float32x2_t *)&v10 = sub_1000229DC(v5, &v15, &v16);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *, double))v7->setPosition)(v7, &v16, v10);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v7->setScale)(v7, 0.6);
v11 = CCTextInputNode::create(30.0, 24.0, "Num", "Thonburi", 24, "bigFont.fnt");
((void (__fastcall *)(ConfigureHSVWidget *, CCTextInputNode *, __int64))a1->addChild_0)(a1, v11, 20);
v12 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v7->getPosition)(v7);
((void (__fastcall *)(CCTextInputNode *, __int64))v11->setPosition)(v11, v12);
CCTextInputNode::setMaxLabelScale(v11, 0.36);
CCTextInputNode::setMaxLabelWidth(v11, 60.0);
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))v11->m_textField->setVisible)(v11->m_textField, 0);
v11->m_maxLabelLength = 5;
v11->m_valueType = Float;
sub_100009900(__p, "0123456789.-");
CCTextInputNode::setAllowedChars(v11, __p);
if ( v14 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(CCTextInputNode *, __int64))v11->setTag)(v11, v4);
v11->m_delegate = &a1->TextInputDelegate;
v11->m_numberInput = 1;
cocos2d::CCDictionary::setObject(a1->m_inputs, v11, (int)v4);
}