//
// cocos2d::extension::CCEditBoxImplAndroid::setPlaceHolder from 0xd1c748 to 0xd1c81c (212 bytes)
//
// 2 xrefs:
// > ??> @ 0xdcae0
// > ??> @ 0x15105d8
//
// This function is hookable on this platform (idp: arm, 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 13:07:09 +0000
//
__int64 __fastcall cocos2d::extension::CCEditBoxImplAndroid::setPlaceHolder(__int64 this, const char *a2)
{
__int64 v2; // x19
size_t v3; // x0
int v4; // w0
__int64 v5; // x2
__int64 (*v6)(void); // x2
if ( a2 )
{
v2 = this;
v3 = strlen(a2);
std::string::assign((__int64 *)(v2 + 80), a2, v3);
v4 = *(unsigned __int8 *)(v2 + 80);
if ( (v4 & 1) != 0 )
{
if ( *(_QWORD *)(v2 + 88) )
{
LABEL_4:
v5 = *(_BYTE *)(v2 + 56) >> 1;
if ( (*(_BYTE *)(v2 + 56) & 1) != 0 )
v5 = *(_QWORD *)(v2 + 64);
if ( !v5 )
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v2 + 32) + 344LL))(*(_QWORD *)(v2 + 32), 1);
v6 = *(__int64 (**)(void))(**(_QWORD **)(v2 + 32) + 1240LL);
return v6();
}
v6 = *(__int64 (**)(void))(**(_QWORD **)(v2 + 32) + 1240LL);
}
else
{
if ( v4 >> 1 )
goto LABEL_4;
v6 = *(__int64 (**)(void))(**(_QWORD **)(v2 + 32) + 1240LL);
}
return v6();
}
return this;
}