//
// cocos2d::extension::CCControlButton::setTitleBMFontForState from 0x5a16fc to 0x5a1772 (118 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::setTitleBMFontForState(
cocos2d::extension::CCControlButton *a1,
const char *a2,
unsigned int a3)
{
cocos2d::CCString *v5; // r7
const std::string *v6; // r1
void (__fastcall *setTitleLabelForState)(cocos2d::extension::CCControlButton *__hidden, cocos2d::CCNode *, unsigned int); // r4
cocos2d::CCLabelBMFont *v8; // r0
char v9; // [sp+8h] [bp-Ch] BYREF
v5 = a1->getTitleForState(a1, a3);
if ( !v5 )
{
sub_776584((int)&v9, (char *)&unk_939830);
v5 = (cocos2d::CCString *)cocos2d::CCString::create((cocos2d::CCString *)&v9, v6);
sub_774008(&v9);
}
setTitleLabelForState = a1->setTitleLabelForState;
cocos2d::CCString::getCString(v5);
v8 = cocos2d::CCLabelBMFont::create();
setTitleLabelForState(a1, v8, a3);
}