//
// cocos2d::CCLabelTTF::setFontName from 0x1800504f0 to 0x18005057b (139 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbf68
//
// This function is hookable on this platform (idp: pc, 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 11:21:45 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCLabelTTF::setFontName(cocos2d::CCLabelTTF *this, char *Str)
{
void *v4; // rdi
_QWORD *v5; // rax
v4 = *((void **)this + 78);
if ( sub_18004FAF0((const void **)v4, Str) )
{
if ( v4 )
{
sub_180005C70((__int64)v4);
j_j_free_0(v4);
}
v5 = (_QWORD *)sub_1800E4AC0(0x20u);
if ( v5 )
v5 = sub_180005A10(v5, Str);
*((_QWORD *)this + 78) = v5;
if ( *((_QWORD *)this + 82) )
cocos2d::CCLabelTTF::updateTexture(this);
}
}