//
// cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize from 0x10033f2b0 to 0x10033f2f4 (68 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e008
// > ??> @ 0x100b526f0
//
// This function is hookable on this platform (idp: pc, 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 12:28:42 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize(
__int64 a1,
__int64 a2,
__int64 a3,
float a4)
{
__int64 v4; // rsi
__int64 v5; // r14
__int64 v6; // rax
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(_QWORD *)(a2 + 16);
else
v4 = a2 + 1;
v5 = cocos2d::CCLabelTTF::create_2(v4, a3, a4);
v6 = cocos2d::extension::CCScale9Sprite::create_4();
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1416LL))(a1, v5, v6);
}