//
// cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder from 0x1800b9f00 to 0x1800ba026 (294 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2e2c
//
// 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=2
__int64 *__fastcall cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
cocos2d::CCTextFieldTTF *v6; // rax
__int64 *v7; // rbx
void *v8; // rdi
__int64 v9; // rax
v6 = (cocos2d::CCTextFieldTTF *)sub_1800E4AC0(0x300u);
if ( v6 )
v7 = (__int64 *)cocos2d::CCTextFieldTTF::CCTextFieldTTF(v6);
else
v7 = nullptr;
if ( !v7 )
return nullptr;
v8 = (void *)v7[92];
if ( v8 )
{
sub_180005C70(v7[92]);
j_j_free_0(v8);
v7[92] = 0;
}
v9 = sub_1800E4AC0(0x20u);
if ( v9 )
{
*(_OWORD *)v9 = 0;
*(_QWORD *)(v9 + 16) = 0;
*(_QWORD *)(v9 + 24) = 15;
*(_BYTE *)v9 = 0;
}
v7[92] = v9;
if ( *(_QWORD *)(v9 + 24) > 0xFu )
v9 = *(_QWORD *)v9;
if ( !(unsigned __int8)cocos2d::CCLabelTTF::initWithString((__int64)v7, v9, a4) )
{
(*(void (__fastcall **)(__int64 *, __int64))(*v7 + 8))(v7, 1);
return nullptr;
}
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
if ( a1 )
(*(void (__fastcall **)(__int64 *, __int64))(*v7 + 1104))(v7, a1);
return v7;
}