//
// cocos2d::extension::CCControl::init from 0xd0c044 to 0xd0c158 (276 bytes)
//
// 16 xrefs:
// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0xd0dbe0
// > cocos2d::extension::CCControlColourPicker::init @ 0xd0e5f8
// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0xd0ebbc
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0xd0f390
// > cocos2d::extension::CCControlSlider::initWithSprites @ 0xd10000
// > cocos2d::extension::CCControlSwitch::initWithMaskSprite @ 0xd1157c
// > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0xd15124
// > cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite @ 0xd15ea8
// > ??> @ 0x80f68
// > ??> @ 0x1509d40
// > ??> @ 0x150b3a0
// > ??> @ 0x150bac0
// > ??> @ 0x150c1e0
// > ??> @ 0x150cf40
// > ??> @ 0x150dc20
// > ??> @ 0x150e320
//
// This function is hookable on this platform (idp: arm, 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 13:07:00 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::init(cocos2d::extension::CCControl *this)
{
__int64 result; // x0
unsigned int v3; // w20
__int64 v4; // x2
cocos2d::CCDictionary *v5; // x23
_QWORD **v6; // x21
LOBYTE(result) = cocos2d::CCLayer::init(this);
v3 = (unsigned __int8)result;
if ( !(_BYTE)result )
return (unsigned __int8)result;
v4 = *(_QWORD *)this;
*((_DWORD *)this + 107) = 1;
(*(void (__fastcall **)(cocos2d::extension::CCControl *, __int64))(v4 + 1264))(this, 1);
(*(void (__fastcall **)(cocos2d::extension::CCControl *, _QWORD))(*(_QWORD *)this + 1280LL))(this, 0);
(*(void (__fastcall **)(cocos2d::extension::CCControl *, _QWORD))(*(_QWORD *)this + 1296LL))(this, 0);
(*(void (__fastcall **)(cocos2d::extension::CCControl *, __int64))(*(_QWORD *)this + 1024LL))(this, 1);
v5 = (cocos2d::CCDictionary *)operator new(0x48u);
cocos2d::CCDictionary::CCDictionary(v5);
v6 = *((_QWORD ***)this + 57);
*((_QWORD *)this + 55) = v5;
if ( v6 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 448,
*v6);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 448,
v6[1]);
operator delete(v6);
}
*((_QWORD *)this + 58) = 0;
*((_QWORD *)this + 57) = 0;
*((_QWORD *)this + 56) = (char *)this + 456;
return v3;
}