//
// cocos2d::extension::CCControlSwitch::create_1 from 0x1003920b0 to 0x10039219d (237 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:29:14 +0000
//
_QWORD *__fastcall cocos2d::extension::CCControlSwitch::create_1(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v6; // rbx
v6 = operator new(0x1E8u);
cocos2d::extension::CCControl::CCControl((__int64)v6);
*v6 = off_100B309D0;
v6[40] = off_100B30F30;
v6[41] = &off_100B30FA0;
v6[42] = off_100B30FB8;
v6[43] = off_100B30FD8;
v6[44] = off_100B31000;
v6[51] = off_100B31030;
v6[59] = 0;
*(_QWORD *)((char *)v6 + 478) = 0;
if ( (unsigned __int8)cocos2d::extension::CCControlSwitch::initWithMaskSprite((__int64)v6, a1, a2, a3, a4, 0, 0) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 16LL))(v6);
return nullptr;
}
return v6;
}