//
// GJSpecialColorSelect::create from 0x4ba518 to 0x4ba5f0 (216 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::onSelectSpecialColor @ 0x3d9d0c
// > SetColorIDPopup::onSelectSpecialColor @ 0x4a89d0
// > SetupPulsePopup::onSelectSpecialColor @ 0x4bd1fe
// > SetupPulsePopup::onSelectSpecialTargetID @ 0x4bd228
//
// 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
//
GJSpecialColorSelect *GJSpecialColorSelect::create(int a1, GJSpecialColorSelectDelegate *a2, ColorSelectType a3)
{
GJSpecialColorSelect *v6; // r4
GJSpecialColorSelect_vtbl *v7; // r3
GJSpecialColorSelect *v8; // r0
v6 = (GJSpecialColorSelect *)operator new(0x1FCu);
cocos2d::CCLayerColor::CCLayerColor(v6);
v6->m_controlConnected = -1;
v6->m_joystickConnected = -1;
v6->m_buttonMenu = nullptr;
v6->m_alertProtocol = nullptr;
v6->m_scene = nullptr;
v6->m_reverseKeyBack = 0;
v6->m_mainLayer = nullptr;
v6->m_ZOrder = 0;
v6->m_noElasticity = 0;
v6->m_button1 = nullptr;
v6->m_button2 = nullptr;
v6->m_scrollingLayer = nullptr;
v6->m_containsBorder = 0;
v6->m_noAction = 0;
v6->m_forcePrioRegistered = 0;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJSpecialColorSelect_vtbl *)&off_A72490;
v6->m_delegate = nullptr;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A72720;
v6->m_colorID = 0;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A72758;
v6->m_buttonSprites = nullptr;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A72764;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A72774;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A72784;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A72798;
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A727D8;
if ( GJSpecialColorSelect::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
v7 = v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v8 = v6;
v6 = nullptr;
v7->~GJSpecialColorSelect_0(v8);
}
return v6;
}