//
// cocos2d::CCTextFieldTTF::initWithPlaceHolder from 0x1800b9350 to 0x1800b9428 (216 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2dc0
//
// 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:22 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall cocos2d::CCTextFieldTTF::initWithPlaceHolder(
cocos2d::CCTextFieldTTF *this,
const char *Str,
const char *a3,
float a4)
{
void *v7; // rdi
__int64 v8; // rax
_QWORD *v9; // rdi
size_t v10; // rax
const char *v11; // rdx
if ( Str )
{
v7 = *((void **)this + 92);
if ( v7 )
{
sub_180005C70(*((_QWORD *)this + 92));
j_j_free_0(v7);
*((_QWORD *)this + 92) = 0;
}
v8 = sub_1800E4AC0(0x20u);
v9 = (_QWORD *)v8;
if ( v8 )
{
*(_OWORD *)v8 = 0;
*(_QWORD *)(v8 + 16) = 0;
*(_QWORD *)(v8 + 24) = 0;
v10 = strlen(Str);
sub_18000CEF0(v9, Str, v10);
}
else
{
v9 = nullptr;
}
*((_QWORD *)this + 92) = v9;
}
v11 = *((const char **)this + 92);
if ( *((_QWORD *)v11 + 3) > 0xFu )
v11 = *(const char **)v11;
return cocos2d::CCLabelTTF::initWithString(this, v11, a3, a4);
}