//
// cocos2d::CCTextFieldTTF::initWithPlaceHolder from 0x1800b9430 to 0x1800b951a (234 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2dcc
//
// 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
__int64 __fastcall cocos2d::CCTextFieldTTF::initWithPlaceHolder(
__int64 a1,
const char *a2,
__int64 a3,
__int64 a4,
__int64 a5)
{
void *v7; // rdi
__int64 v8; // rax
_QWORD *v9; // rdi
size_t v10; // rax
_QWORD *v11; // rdx
if ( a2 )
{
v7 = *(void **)(a1 + 736);
if ( v7 )
{
sub_180005C70(*(_QWORD *)(a1 + 736));
j_j_free_0(v7);
*(_QWORD *)(a1 + 736) = 0;
}
v8 = sub_1800E4AC0(0x20u);
v9 = (_QWORD *)v8;
if ( v8 )
{
*(_OWORD *)v8 = 0;
*(_QWORD *)(v8 + 16) = 0;
*(_QWORD *)(v8 + 24) = 0;
v10 = strlen(a2);
sub_18000CEF0(v9, a2, v10);
}
else
{
v9 = nullptr;
}
*(_QWORD *)(a1 + 736) = v9;
}
v11 = *(_QWORD **)(a1 + 736);
if ( v11[3] > 0xFu )
v11 = (_QWORD *)*v11;
return cocos2d::CCLabelTTF::initWithString(a1, (__int64)v11, a5);
}