//
// SetupPulsePopup::create from 0x4c06c4 to 0x4c08e0 (540 bytes)
//
// 1 xrefs:
// > EditorUI::editObject @ 0x3801e4
//
// 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
//
SetupPulsePopup *SetupPulsePopup::create(EffectGameObject *a1, cocos2d::CCArray *a2)
{
SetupPulsePopup *v4; // r4
int v5; // r0
int v6; // r1
int v7; // r2
int v8; // r3
SetupPulsePopup_vtbl *v9; // r3
int *v10; // r0
v4 = (SetupPulsePopup *)operator new(0x36Cu);
cocos2d::CCLayerColor::CCLayerColor(v4);
v4->m_controlConnected = -1;
v4->m_joystickConnected = -1;
v4->m_buttonMenu = nullptr;
v4->m_alertProtocol = nullptr;
v4->m_scene = nullptr;
v4->m_reverseKeyBack = 0;
v4->m_mainLayer = nullptr;
v4->m_ZOrder = 0;
v4->m_noElasticity = 0;
v4->m_button1 = nullptr;
v4->m_button2 = nullptr;
v4->m_scrollingLayer = nullptr;
v4->m_containsBorder = 0;
v4->m_noAction = 0;
v4->m_forcePrioRegistered = 0;
v4->m_gameObject = nullptr;
v4->m_gameObjects = nullptr;
v4->m_touchTriggered = 0;
v4->m_spawnTriggered = 0;
v4->m_touchToggle = nullptr;
v4->m_spawnToggle = nullptr;
v4->m_multiTriggerContainer = nullptr;
v4->m_multiTriggered = 0;
v4->m_disableTextDelegate = 0;
v4->m_valueToggles = nullptr;
v4->m_inputNodes = nullptr;
v4->m_valueControls = nullptr;
v4->m_customValueToggles = nullptr;
v4->m_disableButtons = nullptr;
v4->m_easingLabel = nullptr;
v4->m_easingRateLabel = nullptr;
v4->m_width = 0.0;
v4->m_height = 0.0;
v4->m_easingRateButton = nullptr;
v4->m_easingType = 0;
v4->m_inputLabels = nullptr;
v4->m_triggerValues = nullptr;
v4->m_minSliderValues = nullptr;
v4->m_maxSliderValues = nullptr;
v4->m_easingRate = 0.0;
memset(&v4->m_shouldLimitValues.m_header, 0, sizeof(v4->m_shouldLimitValues.m_header));
v4->m_easingControlScale = 1.0;
v4->m_shouldLimitValues.m_nodecount = 0;
v4->m_disableSliderDelegate = 0;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupPulsePopup_vtbl *)&off_A73410;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A73704;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A7373C;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A73748;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A73758;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A73768;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A7377C;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A737BC;
v4->SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A737CC;
v4->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&off_A737F0;
v4->SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&off_A737FC;
v4->GJSpecialColorSelectDelegate::__vftable = (GJSpecialColorSelectDelegate_vtbl *)&off_A73818;
v4->m_effectObjects = 0;
v4->m_pageContainers = nullptr;
v4->m_page = 0;
v4->m_groupContainers = nullptr;
v4->m_customEasingTags = nullptr;
v4->m_customEasingLabels = nullptr;
v4->m_customEasingButtons = nullptr;
v4->m_customEasingScales = nullptr;
v4->m_disabledEasingButtons = nullptr;
v4->m_prevButton = nullptr;
v4->m_nextButton = nullptr;
v4->m_hideAll = 0;
v4->cocos2d::extension::ColorPickerDelegate::__vftable = (cocos2d::extension::ColorPickerDelegate_vtbl *)&off_A7380C;
v4->m_colorPicker = nullptr;
v4->m_unk3c0 = 0;
v4->m_shouldLimitValues.m_header.m_left = &v4->m_shouldLimitValues.m_header;
v4->m_shouldLimitValues.m_header.m_right = &v4->m_shouldLimitValues.m_header;
v4->m_colorObjects = nullptr;
v5 = dword_AC6B4C;
v6 = dword_AC6B50;
v7 = dword_AC6B54;
v8 = *(_DWORD *)&byte_AC6B58;
v4->m_hsvObjects = nullptr;
v4->m_currentColorSprite = nullptr;
v4->m_originalColorSprite = nullptr;
v4->m_idInput = nullptr;
v4->m_mainOnlyToggler = nullptr;
v4->m_secondaryOnlyToggler = nullptr;
v4->m_staticHSVToggler = nullptr;
v4->m_mainOnlyLabel = nullptr;
v4->m_secondaryOnlyLabel = nullptr;
v4->m_staticHSVLabel = nullptr;
v4->m_groupMainOnly = 0;
v4->m_groupSecondaryOnly = 0;
v4->m_staticHSV = 0;
v4->m_targetGroupID = 0;
v4->m_colorInitializing = 0;
v4->m_modesInitializing = 0;
v4->m_pulseExclusive = 0;
v4->m_fadeInTime = 0.0;
v4->m_holdTime = 0.0;
v4->m_fadeOutTime = 0.0;
LODWORD(v4->m_hsv.h) = v5;
LODWORD(v4->m_hsv.s) = v6;
LODWORD(v4->m_hsv.v) = v7;
*(_DWORD *)&v4->m_hsv.absoluteSaturation = v8;
if ( SetupPulsePopup::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v9 = v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v10 = (int *)v4;
v4 = nullptr;
v9->~SetupPulsePopup_0((SetupPulsePopup *)v10);
}
return v4;
}