//
// cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize from 0x7a6fe8 to 0x7a701c (52 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 11:59:59 +0000
//
int __fastcall cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize(
int a1,
int a2,
const char *a3,
const char *a4)
{
cocos2d::CCLabelTTF *v5; // r0
cocos2d::extension::CCScale9Sprite *v6; // r0
int (__fastcall *v7)(int, cocos2d::extension::CCScale9Sprite *, int); // r5
cocos2d::extension::CCScale9Sprite *v8; // r6
int v9; // r0
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(cocos2d::CCLabelTTF **)(a2 + 8);
else
v5 = (cocos2d::CCLabelTTF *)(a2 + 1);
v6 = (cocos2d::extension::CCScale9Sprite *)cocos2d::CCLabelTTF::create(v5, a3, a4, *(float *)&a4);
v7 = *(int (__fastcall **)(int, cocos2d::extension::CCScale9Sprite *, int))(*(_DWORD *)a1 + 708);
v8 = v6;
v9 = cocos2d::extension::CCScale9Sprite::create(v6);
return v7(a1, v8, v9);
}