//
// AccountRegisterLayer::createTextInput from 0x140079ba0 to 0x140079cc3 (291 bytes)
//
// 6 xrefs:
// > AccountRegisterLayer::init @ 0x140078f3a
// > AccountRegisterLayer::init @ 0x140079160
// > AccountRegisterLayer::init @ 0x1400793cd
// > AccountRegisterLayer::init @ 0x14007960f
// > AccountRegisterLayer::init @ 0x14007983b
// > ??> @ 0x1406c66f0
//
// 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
CCTextInputNode *__fastcall AccountRegisterLayer::createTextInput(
TextInputDelegate *a1,
const cocos2d::CCPoint *a2,
float *a3,
__int64 a4,
int a5)
{
const char *v9; // r8
CCTextInputNode *v10; // rbx
TextInputDelegate *v11; // rcx
int v13; // [rsp+20h] [rbp-48h]
v9 = (const char *)a4;
if ( *(_QWORD *)(a4 + 24) > 0xFu )
v9 = *(const char **)a4;
v10 = CCTextInputNode::create(*a3 - 20.0, a3[1] + 10.0, v9, (const char *)a4, v13, (const char *)&qword_14052A4D8);
(*((void (__fastcall **)(TextInputDelegate_vtbl *, CCTextInputNode *, __int64))a1[72].textChanged + 55))(
a1[72].__vftable,
v10,
20);
v10->m_maxLabelScale = 0.80000001;
CCTextInputNode::refreshLabel(v10);
v11 = a1 + 79;
if ( !a1 )
v11 = nullptr;
v10->m_delegate = v11;
v10->setTag(v10, a5);
v10->setPosition_0(v10, a2);
v10->m_textField->setVisible(v10->m_textField, 0);
*(_WORD *)&v10->m_placeholderColor.r = -21896;
v10->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v10);
v10->m_placeholderScale = 0.5;
CCTextInputNode::refreshLabel(v10);
sub_14003A830(a4);
return v10;
}