//
// SetTargetIDLayer::create from 0x4f2c6c to 0x4f2e7c (528 bytes)
//
// 2 xrefs:
// > EditorUI::editObject @ 0x38011a
// > EditorUI::editObject @ 0x380430
//
// 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
//
SetupTriggerPopup *__fastcall SetTargetIDLayer::create(
SetTargetIDLayer *this,
cocos2d::CCArray *a2,
cocos2d::CCArray *a3,
std::string a4,
std::string a5,
int a6,
SetupTriggerPopup_vtbl *a7)
{
SetupTriggerPopup *v9; // r4
_BOOL4 v10; // r7
SetupTriggerPopup_vtbl *v11; // r3
int *v12; // r0
_BYTE v14[4]; // [sp+14h] [bp-10h] BYREF
char *v15; // [sp+18h] [bp-Ch] BYREF
v9 = (SetupTriggerPopup *)operator new(0x2B4u);
cocos2d::CCLayerColor::CCLayerColor(v9);
v9->m_buttonMenu = nullptr;
v9->m_alertProtocol = nullptr;
v9->m_scene = nullptr;
v9->m_reverseKeyBack = 0;
v9->m_mainLayer = nullptr;
v9->m_ZOrder = 0;
v9->m_noElasticity = 0;
v9->m_button1 = nullptr;
v9->m_button2 = nullptr;
v9->m_scrollingLayer = nullptr;
v9->m_controlConnected = -1;
v9->m_containsBorder = 0;
v9->m_noAction = 0;
v9->m_joystickConnected = -1;
v9->m_forcePrioRegistered = 0;
v9->m_width = 0.0;
v9->m_height = 0.0;
v9->m_gameObject = nullptr;
v9->m_gameObjects = nullptr;
v9->m_touchTriggered = 0;
v9->m_spawnTriggered = 0;
v9->m_touchToggle = nullptr;
v9->m_spawnToggle = nullptr;
v9->m_multiTriggerContainer = nullptr;
v9->m_multiTriggered = 0;
v9->m_disableTextDelegate = 0;
v9->m_valueToggles = nullptr;
v9->m_inputNodes = nullptr;
v9->m_valueControls = nullptr;
v9->m_customValueToggles = nullptr;
v9->m_disableButtons = nullptr;
v9->m_easingLabel = nullptr;
v9->m_easingRateLabel = nullptr;
v9->m_easingRateButton = nullptr;
v9->m_easingType = 0;
v9->m_easingRate = 0.0;
v9->m_inputLabels = nullptr;
v9->m_triggerValues = nullptr;
v9->m_minSliderValues = nullptr;
v9->m_maxSliderValues = nullptr;
memset(&v9->m_shouldLimitValues.m_header, 0, sizeof(v9->m_shouldLimitValues.m_header));
v9->m_easingControlScale = 1.0;
v9->m_shouldLimitValues.m_nodecount = 0;
v9->m_disableSliderDelegate = 0;
v9->m_effectObjects = 0;
v9->m_pageContainers = nullptr;
v9->m_page = 0;
v9->m_groupContainers = nullptr;
v9->m_customEasingTags = nullptr;
v9->m_customEasingLabels = nullptr;
v9->m_customEasingButtons = nullptr;
v9->m_customEasingScales = nullptr;
v9->m_disabledEasingButtons = nullptr;
v9->m_prevButton = nullptr;
v9->m_nextButton = nullptr;
v9->m_hideAll = 0;
v9[1].m_uID = 0;
v9[1].m_nLuaID = 0;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupTriggerPopup_vtbl *)&off_A7B938;
v9->m_shouldLimitValues.m_header.m_left = &v9->m_shouldLimitValues.m_header;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A7BC20;
v9->m_shouldLimitValues.m_header.m_right = &v9->m_shouldLimitValues.m_header;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A7BC58;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A7BC64;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A7BC74;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A7BC84;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A7BC98;
v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A7BCD8;
v9->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A7BCE8;
v9->ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&off_A7BD0C;
v9->SliderDelegate::__vftable = (SliderDelegate_vtbl *)&off_A7BD18;
sub_775C20(v14);
sub_775C20(&v15);
v10 = SetTargetIDLayer::init(v9, (EffectGameObject *)this, a2, (int)v14, &v15, (unsigned int)a5.m_data.m_data, a6, a7);
sub_774008(&v15);
sub_774008(v14);
if ( v10 )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
v11 = v9->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v12 = (int *)v9;
v9 = nullptr;
v11->~SetupTriggerPopup_0((SetupTriggerPopup *)v12);
}
return v9;
}