//
// cocos2d::CCTextFieldTTF::initWithPlaceHolder from 0x7fe9d4 to 0x7fea3a (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:18 +0000
//
cocos2d::CCShaderCache *__fastcall cocos2d::CCTextFieldTTF::initWithPlaceHolder(
cocos2d::CCTextFieldTTF *this,
const char *a2,
const char *a3,
int a4)
{
void *v8; // r5
int *v9; // r5
size_t v10; // r0
int v11; // r1
const char *v12; // r1
if ( a2 )
{
v8 = *((void **)this + 149);
if ( v8 )
{
std::string::~string(*((_DWORD *)this + 149));
operator delete(v8);
*((_DWORD *)this + 149) = 0;
}
v9 = (int *)operator new(0xCu);
*v9 = 0;
v9[1] = 0;
v9[2] = 0;
v10 = strlen(a2);
std::string::__init(v9, a2, v10);
*((_DWORD *)this + 149) = v9;
}
v11 = *((_DWORD *)this + 149);
if ( (*(_BYTE *)v11 & 1) != 0 )
v12 = *(const char **)(v11 + 8);
else
v12 = (const char *)(v11 + 1);
return cocos2d::CCLabelTTF::initWithString(this, v12, a3, a4);
}