//
// cocos2d::extension::CCControlSwitch::create from 0xd117cc to 0xd1189c (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x746e0
//
// 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:03 +0000
//
cocos2d::extension::CCControlSwitch *__fastcall cocos2d::extension::CCControlSwitch::create(
cocos2d::extension::CCControlSwitch *this,
cocos2d::CCSprite *a2,
cocos2d::CCSprite *a3,
cocos2d::CCSprite *a4,
cocos2d::CCSprite *a5,
cocos2d::CCLabelTTF *a6,
cocos2d::CCLabelTTF *a7)
{
cocos2d::extension::CCControlSwitch *v13; // x19
v13 = (cocos2d::extension::CCControlSwitch *)operator new(0x1E8u);
cocos2d::extension::CCControlSwitch::CCControlSwitch(v13);
if ( (unsigned __int8)cocos2d::extension::CCControlSwitch::initWithMaskSprite(v13, this, a2, a3, a4, a5, a6) )
{
cocos2d::CCObject::autorelease(v13);
return v13;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *))(*(_QWORD *)v13 + 16LL))(v13);
return nullptr;
}
}