//
// cocos2d::CCLabelTTF::setFontName from 0x7d65b6 to 0x7d662a (116 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCEditBoxImplAndroid::setFont @ 0x7b0ffa
// > cocos2d::extension::CCEditBoxImplAndroid::setFont @ 0x7b1012
// > cocos2d::extension::CCEditBoxImplAndroid::setPlaceholderFont @ 0x7b1042
//
// 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:39 +0000
//
void *__fastcall cocos2d::CCLabelTTF::setFontName(cocos2d::CCLabelTTF *this, char *a2)
{
unsigned __int8 *v3; // r5
size_t v5; // r0
void *result; // r0
int *v7; // r5
size_t v8; // r0
int v9; // r3
int v10; // r3
v3 = *((unsigned __int8 **)this + 132);
v5 = strlen(a2);
result = (void *)std::string::compare(v3, 0, 0xFFFFFFFF, a2, v5);
if ( result )
{
if ( v3 )
{
std::string::~string((int)v3);
operator delete(v3);
}
v7 = (int *)operator new(0xCu);
*v7 = 0;
v7[1] = 0;
v7[2] = 0;
v8 = strlen(a2);
result = std::string::__init(v7, a2, v8);
v9 = *((unsigned __int8 *)this + 536);
*((_DWORD *)this + 132) = v7;
if ( (v9 & 1) != 0 )
v10 = *((_DWORD *)this + 135);
else
v10 = v9 >> 1;
if ( v10 )
return (void *)cocos2d::CCLabelTTF::updateTexture(this);
}
return result;
}