//
// cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder from 0x1800b9e50 to 0x1800b9ef1 (161 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2e20
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:22:23 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTextFieldTTF *__fastcall cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(
const char *a1,
const char *a2,
float a3)
{
cocos2d::CCTextFieldTTF *v5; // rax
cocos2d::CCLabelTTF *v6; // rbx
v5 = (cocos2d::CCTextFieldTTF *)sub_1800E4AC0(0x300u);
if ( v5 )
v6 = cocos2d::CCTextFieldTTF::CCTextFieldTTF(v5);
else
v6 = nullptr;
if ( !v6 )
return nullptr;
if ( !(unsigned __int8)cocos2d::CCLabelTTF::initWithString(v6, Text, a2, a3) )
{
(*(void (__fastcall **)(cocos2d::CCLabelTTF *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
return nullptr;
}
cocos2d::CCObject::autorelease(v6);
if ( a1 )
(*(void (__fastcall **)(cocos2d::CCLabelTTF *, const char *))(*(_QWORD *)v6 + 1104LL))(v6, a1);
return v6;
}