//
// cocos2d::extension::CCControlSwitch::create from 0x7aa7a0 to 0x7aa7fa (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:02 +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 *v11; // r4
int v12; // r3
cocos2d::extension::CCControlSwitch *v13; // r0
v11 = (cocos2d::extension::CCControlSwitch *)operator new(0x170u);
cocos2d::extension::CCControlSwitch::CCControlSwitch(v11);
if ( cocos2d::extension::CCControlSwitch::initWithMaskSprite(v11, this, a2, a3, a4, a5, a6) )
{
cocos2d::CCObject::autorelease(v11);
}
else
{
v12 = *(_DWORD *)v11;
v13 = v11;
v11 = nullptr;
(*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *))(v12 + 8))(v13);
}
return v11;
}