//
// cocos2d::CCTextFieldTTF::initWithPlaceHolder from 0x7fe902 to 0x7fe974 (114 bytes)
//
// 1 xrefs:
// > cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder @ 0x7fe9a0
//
// 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(
int a1,
const char *a2,
float *a3,
int a4,
const char *a5,
int a6)
{
void *v10; // r5
int *v11; // r5
size_t v12; // r0
int v13; // r1
int v14; // r1
if ( a2 )
{
v10 = *(void **)(a1 + 596);
if ( v10 )
{
std::string::~string(*(_DWORD *)(a1 + 596));
operator delete(v10);
*(_DWORD *)(a1 + 596) = 0;
}
v11 = (int *)operator new(0xCu);
*v11 = 0;
v11[1] = 0;
v11[2] = 0;
v12 = strlen(a2);
std::string::__init(v11, a2, v12);
*(_DWORD *)(a1 + 596) = v11;
}
v13 = *(_DWORD *)(a1 + 596);
if ( (*(_BYTE *)v13 & 1) != 0 )
v14 = *(_DWORD *)(v13 + 8);
else
v14 = v13 + 1;
return cocos2d::CCLabelTTF::initWithString((float *)a1, v14, a5, a6, a3, a4);
}