//
// cocos2d::CCTextFieldTTF::setPlaceHolder from 0x1800b9a40 to 0x1800b9b2d (237 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010d2b0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2de4
//
// 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
void __fastcall cocos2d::CCTextFieldTTF::setPlaceHolder(cocos2d::CCTextFieldTTF *this, const char *a2)
{
void *v4; // rbx
__int64 v5; // rax
char *v6; // rbx
size_t v7; // rax
v4 = *((void **)this + 92);
if ( v4 )
{
sub_180005C70(*((_QWORD *)this + 92));
j_j_free_0(v4);
*((_QWORD *)this + 92) = 0;
}
v5 = sub_1800E4AC0(0x20u);
v6 = (char *)v5;
if ( a2 )
{
if ( v5 )
{
*(_OWORD *)v5 = 0;
*(_QWORD *)(v5 + 16) = 0;
*(_QWORD *)(v5 + 24) = 0;
v7 = strlen(a2);
sub_18000CEF0(v6, a2, v7);
}
else
{
v6 = nullptr;
}
}
else if ( v5 )
{
*(_OWORD *)v5 = 0;
*(_QWORD *)(v5 + 16) = 0;
*(_QWORD *)(v5 + 24) = 15;
*(_BYTE *)v5 = 0;
}
else
{
v6 = nullptr;
}
*((_QWORD *)this + 92) = v6;
if ( !*(_QWORD *)(*((_QWORD *)this + 91) + 16LL) )
{
if ( *((_QWORD *)v6 + 3) > 0xFu )
v6 = *(char **)v6;
cocos2d::CCLabelTTF::setString((void **)this + 75, v6);
}
}