//
// cocos2d::extension::CCControlButton::init from 0x1800053b0 to 0x180005447 (151 bytes)
//
// 4 xrefs:
// > ??> @ 0x180026270
// > ??> @ 0x18002a1e8
// > ??> @ 0x180032408
// > ??> @ 0x18004b48c
//
// 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:15:35 +0000
//
// Hidden C++ exception states: #wind=1
bool __fastcall cocos2d::extension::CCControlButton::init(cocos2d::extension::CCControlButton *this)
{
__int64 v2; // rax
cocos2d::CCObject *v3; // rdi
__int64 v4; // rbx
struct cocos2d::CCLabelTTF *v5; // rax
cocos2d::extension::CCScale9Sprite *v7; // [rsp+30h] [rbp+8h]
v7 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);
v2 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v7);
v3 = (cocos2d::CCObject *)v2;
if ( !v2 )
goto LABEL_5;
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 72LL))(v2) )
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
LABEL_5:
v3 = nullptr;
goto LABEL_6;
}
cocos2d::CCObject::autorelease(v3);
LABEL_6:
v4 = *(_QWORD *)this;
v5 = cocos2d::CCLabelTTF::create(byte_180025968, "Helvetica", 12.0);
return (*(bool (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelTTF *, cocos2d::CCObject *))(v4 + 1184))(
this,
v5,
v3);
}