//
// SetupSpawnPopup::create from 0x1000f79e4 to 0x1000f7ab8 (212 bytes)
//
// 1 xrefs:
// > EditorUI::editObject @ 0x1003e5050
//
// 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
//
SetupSpawnPopup *__fastcall SetupSpawnPopup::create(EffectGameObject *a1, cocos2d::CCArray *a2)
{
char *v4; // x19
v4 = (char *)operator new(0x3D8u);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v4);
*(_QWORD *)v4 = off_100785FD0;
*((_QWORD *)v4 + 40) = off_1007865A0;
*((_QWORD *)v4 + 41) = &off_100786610;
*((_QWORD *)v4 + 42) = off_100786628;
*((_QWORD *)v4 + 43) = off_100786648;
*((_QWORD *)v4 + 44) = off_100786668;
*((_QWORD *)v4 + 51) = off_100786690;
*((_QWORD *)v4 + 54) = off_100786710;
*((_QWORD *)v4 + 79) = off_100786730;
*((_QWORD *)v4 + 80) = &off_100786778;
*((_QWORD *)v4 + 81) = off_100786790;
v4[937] = 0;
*(_OWORD *)(v4 + 952) = 0u;
*(_OWORD *)(v4 + 968) = 0u;
if ( SetupSpawnPopup::init((SetupSpawnPopup *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (SetupSpawnPopup *)v4;
}