//
// cocos2d::extension::CCControlSwitch::create from 0xd11710 to 0xd117cc (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x810d0
//
// 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::extension::CCControlSwitch *v9; // x19
v9 = (cocos2d::extension::CCControlSwitch *)operator new(0x1E8u);
cocos2d::extension::CCControlSwitch::CCControlSwitch(v9);
if ( (unsigned __int8)cocos2d::extension::CCControlSwitch::initWithMaskSprite(v9, this, a2, a3, a4, nullptr, nullptr) )
{
cocos2d::CCObject::autorelease(v9);
return v9;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *))(*(_QWORD *)v9 + 16LL))(v9);
return nullptr;
}
}