//
// SetTargetIDLayer::create from 0x1002131c4 to 0x100213348 (388 bytes)
//
// 2 xrefs:
// > EditorUI::editObject @ 0x1003e4ce4
// > EditorUI::editObject @ 0x1003e5240
//
// 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(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7)
{
SetupTriggerPopup *v14; // x19
int v15; // w20
void *__p[2]; // [xsp+0h] [xbp-80h] BYREF
__int64 v18; // [xsp+10h] [xbp-70h]
void *__dst[2]; // [xsp+20h] [xbp-60h] BYREF
__int64 v20; // [xsp+30h] [xbp-50h]
v14 = (SetupTriggerPopup *)operator new(0x3B8u);
SetupTriggerPopup::SetupTriggerPopup(v14);
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupTriggerPopup_vtbl *)&off_1007C2100;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1007C26D0;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1007C2740;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1007C2758;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_1007C2778;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1007C2798;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1007C27C0;
v14->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_1007C2840;
v14->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)off_1007C2860;
v14->ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&off_1007C28A8;
v14->SliderDelegate::__vftable = (SliderDelegate_vtbl *)off_1007C28C0;
v14[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = nullptr;
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__dst, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__dst = *(_OWORD *)a3;
v20 = *(_QWORD *)(a3 + 16);
}
if ( *(char *)(a4 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a4, *(_QWORD *)(a4 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a4;
v18 = *(_QWORD *)(a4 + 16);
}
v15 = SetTargetIDLayer::init(v14, a1, a2, __dst, __p, a5, a6, a7);
if ( SHIBYTE(v18) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v20) < 0 )
{
operator delete(__dst[0]);
if ( v15 )
goto LABEL_11;
LABEL_13:
((void (__fastcall *)(SetupTriggerPopup *))v14->~SetupTriggerPopup_0)(v14);
return nullptr;
}
if ( !v15 )
goto LABEL_13;
LABEL_11:
cocos2d::CCObject::autorelease(v14);
return v14;
}