//
// cocos2d::extension::CCControl::CCControl from 0x18001ade0 to 0x18001af15 (309 bytes)
//
// 10 xrefs:
// > cocos2d::extension::CCControlButton::CCControlButton @ 0x18001b055
// > cocos2d::extension::CCControlHuePicker::CCControlHuePicker @ 0x18001b335
// > cocos2d::extension::CCControlSaturationBrightnessPicker::CCControlSaturationBrightnessPicker @ 0x18001b4b5
// > cocos2d::extension::CCControlColourPicker::CCControlColourPicker @ 0x18001b6b0
// > cocos2d::extension::CCControlPotentiometer::CCControlPotentiometer @ 0x18001b8a5
// > cocos2d::extension::CCControlSlider::CCControlSlider @ 0x18001ba60
// > cocos2d::extension::CCControlStepper::CCControlStepper @ 0x18001bbe0
// > cocos2d::extension::CCControlSwitch::CCControlSwitch @ 0x18001be10
// > ??> @ 0x180032408
// > ??> @ 0x18004ccf8
//
// 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:43 +0000
//
// Hidden C++ exception states: #wind=2
cocos2d::extension::CCControl *__fastcall cocos2d::extension::CCControl::CCControl(
cocos2d::extension::CCControl *this,
const struct cocos2d::extension::CCControl *a2)
{
__int64 v4; // rax
cocos2d::CCLayerRGBA::CCLayerRGBA(this, a2);
*(_QWORD *)this = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCNode'};
*((_QWORD *)this + 40) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCTouchDelegate'};
*((_QWORD *)this + 41) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCAccelerometerDelegate'};
*((_QWORD *)this + 42) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCKeypadDelegate'};
*((_QWORD *)this + 43) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCKeyboardDelegate'};
*((_QWORD *)this + 44) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCMouseDelegate'};
*((_QWORD *)this + 51) = &cocos2d::extension::CCControl::`vftable';
*((_BYTE *)this + 432) = *((_BYTE *)a2 + 432);
*((_DWORD *)this + 109) = *((_DWORD *)a2 + 109);
*((_BYTE *)this + 440) = *((_BYTE *)a2 + 440);
*((_BYTE *)this + 441) = *((_BYTE *)a2 + 441);
*((_BYTE *)this + 442) = *((_BYTE *)a2 + 442);
*((_BYTE *)this + 443) = *((_BYTE *)a2 + 443);
*((_QWORD *)this + 56) = *((_QWORD *)a2 + 56);
*((_QWORD *)this + 57) = 0;
*((_QWORD *)this + 58) = 0;
v4 = sub_18001F040(0x28u);
*(_QWORD *)v4 = v4;
*(_QWORD *)(v4 + 8) = v4;
*(_QWORD *)(v4 + 16) = v4;
*(_WORD *)(v4 + 24) = 257;
*((_QWORD *)this + 57) = v4;
sub_18001DA70((char *)this + 456, (char *)a2 + 456);
return this;
}