//
// AccountRegisterLayer::createTextInput from 0x585cc4 to 0x585d72 (174 bytes)
//
// 5 xrefs:
// > AccountRegisterLayer::init @ 0x586d64
// > AccountRegisterLayer::init @ 0x586f44
// > AccountRegisterLayer::init @ 0x587032
// > AccountRegisterLayer::init @ 0x587128
// > AccountRegisterLayer::init @ 0x58720a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:52:58 +0000
//
int *__fastcall AccountRegisterLayer::createTextInput(int a1, int a2, int a3, int a4, int a5)
{
int v6; // r5
float v7; // s14
float v8; // s15
char *v9; // r2
int *v10; // r4
int v11; // r3
int v14; // [sp+Ch] [bp-4h]
HIBYTE(v14) = HIBYTE(a4);
v6 = a1 + 440;
v7 = *(float *)a3 - 20.0;
v8 = *(float *)(a3 + 4);
if ( (*(_BYTE *)a4 & 1) != 0 )
v9 = *(char **)(a4 + 8);
else
v9 = (char *)(a4 + 1);
v10 = CCTextInputNode::create(
(CCTextInputNode *)LODWORD(v7),
v8 + 10.0,
v9,
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
(const char *)a3);
(*(void (__fastcall **)(_DWORD, int *, int))(**(_DWORD **)(v6 + 20) + 232))(*(_DWORD *)(v6 + 20), v10, 20);
CCTextInputNode::setMaxLabelScale((unsigned int)v10, 0.8);
v11 = *v10;
v10[105] = v6;
(*(void (__fastcall **)(int *, int))(v11 + 36))(v10, a5);
(*(void (__fastcall **)(int *, int))(*v10 + 92))(v10, a2);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v10[104] + 172))(v10[104], 0);
LOWORD(v14) = -21896;
BYTE2(v14) = -16;
CCTextInputNode::setLabelPlaceholderColor((unsigned int)v10, v14);
CCTextInputNode::setLabelPlaceholderScale((unsigned int)v10, 0.5);
return v10;
}