//
// cocos2d::extension::CCControlButton::setTitleTTFForState from 0x5a156c to 0x5a15e4 (120 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::extension::CCControlButton::setTitleTTFForState(
cocos2d::extension::CCControlButton *a1,
const char *a2,
unsigned int a3)
{
cocos2d::CCString *v6; // r7
const std::string *v7; // r1
void (__fastcall *setTitleLabelForState)(cocos2d::extension::CCControlButton *__hidden, cocos2d::CCNode *, unsigned int); // r4
cocos2d::CCLabelTTF *CString; // r0
float v10; // r3
cocos2d::CCNode *v11; // r0
char v12; // [sp+8h] [bp-Ch] BYREF
v6 = a1->getTitleForState(a1, a3);
if ( !v6 )
{
sub_776584((int)&v12, (char *)&unk_939830);
v6 = (cocos2d::CCString *)cocos2d::CCString::create((cocos2d::CCString *)&v12, v7);
sub_774008(&v12);
}
setTitleLabelForState = a1->setTitleLabelForState;
CString = (cocos2d::CCLabelTTF *)cocos2d::CCString::getCString(v6);
v11 = (cocos2d::CCNode *)cocos2d::CCLabelTTF::create(CString, a2, (const char *)0x41400000, v10);
setTitleLabelForState(a1, v11, a3);
}