//
// ConfigureHSVWidget::createTextInputNode from 0x4b684c to 0x4b69a2 (342 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::init @ 0x4b71cc
// > ConfigureHSVWidget::init @ 0x4b72d0
// > ConfigureHSVWidget::init @ 0x4b73ca
//
// 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
//
void ConfigureHSVWidget::createTextInputNode(ConfigureHSVWidget *a1, cocos2d::CCPoint a2, int a3)
{
float x; // r11
float y; // r10
cocos2d::CCNode *v6; // r5
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r4
CCTextInputNode *v8; // r4
void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
int v10; // r0
cocos2d::CCDictionary *m_inputs; // r0
float v12; // r2
float v13; // r3
cocos2d::CCSize v14; // [sp+Ch] [bp-28h] BYREF
cocos2d::CCPoint v15; // [sp+14h] [bp-20h] BYREF
cocos2d::CCRect v16; // [sp+1Ch] [bp-18h] BYREF
cocos2d::CCSize v17; // 0:^0.8
cocos2d::CCRect v18; // 0:kr00_16.16
x = a2.x;
y = a2.y;
cocos2d::CCRect::CCRect(&v16, 0.0, 0.0, 40.0, 40.0);
v18.origin.x = v12;
v18.origin.y = v13;
v18.size = v17;
v6 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02_small.png",
(const char *)&v16,
v18);
((void (__fastcall *)(cocos2d::CCNode *, int))v6->__vftable[1].~CCNode_0)(v6, 100);
cocos2d::CCSize::CCSize(&v14, 60.0, 30.0);
v6->setContentSize(v6, &v14);
a1->addChild_0(a1, v6, -1);
setPosition = v6->setPosition;
cocos2d::CCPoint::CCPoint(&v15, 50.0, 0.0);
cocos2d::CCPoint::operator+(&v16, LODWORD(x), &v15);
setPosition(v6, &v16.origin);
((void (__fastcall *)(cocos2d::CCNode *, int))v6->setScale)(v6, 1058642330);
v8 = CCTextInputNode::create(30.0, 24.0, "Num", "Thonburi");
((void (__fastcall *)(ConfigureHSVWidget *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int *, const char *))a1->addChild_0)(
a1,
v8,
20,
a1->addChild_0,
&dword_18,
"bigFont.fnt");
v9 = v8->setPosition;
v10 = (int)v6->getPosition(v6);
v9(v8, (const cocos2d::CCPoint *)v10);
CCTextInputNode::setMaxLabelScale(v8, 0.36);
CCTextInputNode::setMaxLabelWidth(v8, 60.0);
v8->m_textField->setVisible(v8->m_textField, 0);
v8->m_maxLabelLength = 5;
v8->m_valueType = Float;
sub_776584((int)&v16, "0123456789.-");
CCTextInputNode::setAllowedChars((int)v8, (int)&v16);
sub_774008(&v16);
((void (__fastcall *)(CCTextInputNode *, float))v8->setTag)(v8, COERCE_FLOAT(LODWORD(y)));
v8->m_delegate = &a1->TextInputDelegate;
m_inputs = a1->m_inputs;
v8->m_numberInput = 1;
cocos2d::CCDictionary::setObject(m_inputs, v8, SLODWORD(y));
}