//
// cocos2d::extension::CCControlButton::setTitleTTFForState from 0x7a7bf4 to 0x7a7c72 (126 bytes)
//
// 0 xrefs:
//
// 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:00 +0000
//
int __fastcall cocos2d::extension::CCControlButton::setTitleTTFForState(
cocos2d::extension::CCControlButton *this,
const char *a2,
unsigned int a3)
{
cocos2d::CCString *v6; // r4
int (__fastcall *v7)(cocos2d::extension::CCControlButton *, int, unsigned int); // r5
cocos2d::CCLabelTTF *CString; // r0
float v9; // r3
int v10; // r0
int v12[3]; // [sp+0h] [bp-14h] BYREF
v6 = (cocos2d::CCString *)(*(int (__fastcall **)(cocos2d::extension::CCControlButton *, unsigned int))(*(_DWORD *)this + 720))(
this,
a3);
if ( !v6 )
{
memset(v12, 0, sizeof(v12));
std::string::__init(v12, &unk_B6B226, 0);
v6 = (cocos2d::CCString *)cocos2d::CCString::create(v12);
std::string::~string((int)v12);
}
v7 = *(int (__fastcall **)(cocos2d::extension::CCControlButton *, int, unsigned int))(*(_DWORD *)this + 740);
CString = (cocos2d::CCLabelTTF *)cocos2d::CCString::getCString(v6);
v10 = cocos2d::CCLabelTTF::create(CString, a2, (const char *)0x41400000, v9);
return v7(this, v10, a3);
}