// // cocos2d::extension::CCControlSwitch::create from 0x18000cdd0 to 0x18000ce7f (175 bytes) // // 2 xrefs: // > @ 0x18002fdf8 // > @ 0x180049da4 // // 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 // // Hidden C++ exception states: #wind=1 struct cocos2d::extension::CCControlSwitch *__fastcall cocos2d::extension::CCControlSwitch::create( struct cocos2d::CCSprite *a1, struct cocos2d::CCSprite *a2, struct cocos2d::CCSprite *a3, struct cocos2d::CCSprite *a4, struct cocos2d::CCLabelTTF *a5, struct cocos2d::CCLabelTTF *a6) { cocos2d::extension::CCControlSwitch *v10; // rbx cocos2d::extension::CCControlSwitch *v12; // [rsp+40h] [rbp-18h] v12 = (cocos2d::extension::CCControlSwitch *)operator new(0x1E8u); v10 = cocos2d::extension::CCControlSwitch::CCControlSwitch(v12); if ( v10 ) { if ( cocos2d::extension::CCControlSwitch::initWithMaskSprite(v10, a1, a2, a3, a4, a5, a6) ) { cocos2d::CCObject::autorelease(v10); } else { (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1); return nullptr; } } return v10; }