//
// ConfigureHSVWidget::createTextInputNode from 0x1400973c0 to 0x14009761e (606 bytes)
//
// 4 xrefs:
// > ConfigureHSVWidget::init @ 0x140096c9b
// > ConfigureHSVWidget::init @ 0x140096e4a
// > ConfigureHSVWidget::init @ 0x140096fd1
// > ??> @ 0x1406c72d8
//
// 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
//
// Hidden C++ exception states: #wind=1
void ConfigureHSVWidget::createTextInputNode(ConfigureHSVWidget *a1, cocos2d::CCPoint a2, int a3)
{
__int64 v3; // rbp
struct cocos2d::CCRect *v6; // rax
struct cocos2d::extension::CCScale9Sprite *v7; // rdi
__int64 v8; // rdx
const char *v9; // r9
CCTextInputNode *v10; // rsi
CCTextInputNode_vtbl *v11; // rbx
__int64 v12; // rax
TextInputDelegate *v13; // rax
int v14; // [rsp+20h] [rbp-68h]
cocos2d::CCPoint v15; // [rsp+30h] [rbp-58h] BYREF
cocos2d::CCRect v16; // [rsp+38h] [rbp-50h] BYREF
char Src[14]; // [rsp+48h] [rbp-40h] BYREF
__int16 Src_14; // [rsp+56h] [rbp-32h]
__int64 v19; // [rsp+58h] [rbp-30h]
__int64 v20; // [rsp+60h] [rbp-28h]
cocos2d::CCSize v21; // [rsp+90h] [rbp+8h] BYREF
char *v22; // [rsp+A8h] [rbp+20h] BYREF
v3 = a3;
cocos2d::CCRect::CCRect(&v16, 0.0, 0.0, 40.0, 40.0);
v7 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v6);
LOBYTE(v8) = 100;
v7->setOpacity(&v7->cocos2d::CCRGBAProtocol, v8);
cocos2d::CCSize::CCSize(&v21, 60.0, 30.0);
v7->setContentSize(v7, &v21);
a1->addChild_0(a1, v7, -1);
cocos2d::CCPoint::CCPoint(&v15, 50.0, 0.0);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(a2, &v22);
v7->setPosition_0(v7, (const cocos2d::CCPoint *)&v22);
((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v7->setScale_0)(v7);
v10 = CCTextInputNode::create(30.000002, 24.0, "Num", v9, v14, (const char *)&qword_14052A4D8);
a1->addChild_0(a1, v10, 20);
v11 = v10->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v12 = (__int64)v7->getPosition_0(v7);
v11->setPosition_0(v10, (const cocos2d::CCPoint *)v12);
v10->m_maxLabelScale = 0.36000001;
CCTextInputNode::refreshLabel(v10);
v10->m_maxLabelWidth = 60.0;
CCTextInputNode::refreshLabel(v10);
v10->m_textField->setVisible(v10->m_textField, 0);
v10->m_maxLabelLength = 5;
v10->m_valueType = Float;
v19 = 12;
v20 = 15;
strcpy(Src, "0123456789.-");
Src[13] = 0;
Src_14 = 0;
v22 = Src;
if ( &v10->m_allowedChars != (std::string *)Src )
sub_14003CCE0((void **)&v10->m_allowedChars, Src, 0xCu);
sub_14003A830((__int64)Src);
v10->setTag(v10, v3);
v13 = &a1->TextInputDelegate;
if ( !a1 )
v13 = nullptr;
v10->m_delegate = v13;
v10->m_numberInput = 1;
cocos2d::CCDictionary::setObject(a1->m_inputs, v10, v3);
}