//
// cocos2d::extension::CCEditBoxImplAndroid::setPlaceHolder from 0x7b1300 to 0x7b137a (122 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:00:07 +0000
//
int __fastcall cocos2d::extension::CCEditBoxImplAndroid::setPlaceHolder(int this, const char *a2)
{
int v2; // r4
size_t v4; // r0
unsigned int v5; // r3
int v6; // r0
int v7; // r3
int v8; // r3
int (*v9)(void); // r3
v2 = this;
if ( a2 )
{
v4 = strlen(a2);
std::string::assign((_DWORD *)(v2 + 44), a2, v4);
v5 = *(unsigned __int8 *)(v2 + 44);
v6 = *(_DWORD *)(v2 + 16);
if ( (v5 & 1) != 0 )
{
if ( !*(_DWORD *)(v2 + 48) )
{
v9 = *(int (**)(void))(*(_DWORD *)v6 + 620);
return v9();
}
}
else if ( !(v5 >> 1) )
{
v9 = *(int (**)(void))(*(_DWORD *)v6 + 620);
return v9();
}
v7 = *(unsigned __int8 *)(v2 + 32);
if ( (v7 & 1) != 0 )
v8 = *(_DWORD *)(v2 + 36);
else
v8 = v7 >> 1;
if ( !v8 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, 1);
v9 = *(int (**)(void))(**(_DWORD **)(v2 + 16) + 620);
return v9();
}
return this;
}