//
// cocos2d::extension::CCControlSwitch::create from 0x1003921b0 to 0x1003922a6 (246 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(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6)
{
_QWORD *v8; // rbx
v8 = operator new(0x1E8u);
cocos2d::extension::CCControl::CCControl((__int64)v8);
*v8 = off_100B309D0;
v8[40] = off_100B30F30;
v8[41] = &off_100B30FA0;
v8[42] = off_100B30FB8;
v8[43] = off_100B30FD8;
v8[44] = off_100B31000;
v8[51] = off_100B31030;
v8[59] = 0;
*(_QWORD *)((char *)v8 + 478) = 0;
if ( (unsigned __int8)cocos2d::extension::CCControlSwitch::initWithMaskSprite((__int64)v8, a1, a2, a3, a4, a5, a6) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v8 + 16LL))(v8);
return nullptr;
}
return v8;
}