//
// cocos2d::CCMenuItemFont::setFontName from 0xd67864 to 0xd678d8 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x61360
//
// 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:54 +0000
//
__int64 __fastcall cocos2d::CCMenuItemFont::setFontName(cocos2d::CCMenuItemFont *this, const char *a2)
{
size_t v2; // x0
if ( byte_1560418 )
{
if ( (byte_1560400 & 1) != 0 )
{
*(_BYTE *)qword_1560410 = 0;
*(__int64 *)((char *)&qword_1560401 + 7) = 0;
}
else
{
LOBYTE(qword_1560401) = 0;
byte_1560400 = 0;
}
}
v2 = strlen((const char *)this);
std::string::assign((__int64 *)&byte_1560400, this, v2);
byte_1560418 = 1;
return 1;
}