//
// cocos2d::extension::CCControlSwitch::create from 0x7aa748 to 0x7aa7a0 (88 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::extension::CCControlSwitch *v9; // r4
int v10; // r3
cocos2d::extension::CCControlSwitch *v11; // r0
v9 = (cocos2d::extension::CCControlSwitch *)operator new(0x170u);
cocos2d::extension::CCControlSwitch::CCControlSwitch(v9);
if ( cocos2d::extension::CCControlSwitch::initWithMaskSprite(v9, this, a2, a3, a4, nullptr, nullptr) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
v10 = *(_DWORD *)v9;
v11 = v9;
v9 = nullptr;
(*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *))(v10 + 8))(v11);
}
return v9;
}