//
// cocos2d::extension::CCControlSwitch::create from 0x1003a89c0 to 0x1003a8ab6 (246 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::extension::CCControlSwitch *__fastcall cocos2d::extension::CCControlSwitch::create(
cocos2d::CCSprite *a1,
cocos2d::CCSprite *a2,
cocos2d::CCSprite *a3,
cocos2d::CCSprite *a4,
cocos2d::CCLabelTTF *a5,
cocos2d::CCLabelTTF *a6)
{
char *v8; // rbx
v8 = (char *)operator new(0x1E8u);
cocos2d::extension::CCControl::CCControl((__int64)v8);
*(_QWORD *)v8 = off_100928288;
*((_QWORD *)v8 + 40) = off_1009287D8;
*((_QWORD *)v8 + 41) = &off_100928848;
*((_QWORD *)v8 + 42) = off_100928860;
*((_QWORD *)v8 + 43) = off_100928880;
*((_QWORD *)v8 + 44) = off_1009288A0;
*((_QWORD *)v8 + 51) = off_1009288C8;
*((_QWORD *)v8 + 59) = 0;
*(_QWORD *)(v8 + 478) = 0;
if ( cocos2d::extension::CCControlSwitch::initWithMaskSprite(
(cocos2d::extension::CCControlSwitch *)v8,
a1,
a2,
a3,
a4,
a5,
a6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
return (cocos2d::extension::CCControlSwitch *)v8;
}