//
// SetupRandAdvTriggerPopup::create from 0x10002e53c to 0x10002e618 (220 bytes)
//
// 1 xrefs:
// > EditorUI::editObject @ 0x1003e514c
//
// 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
//
SetupRandAdvTriggerPopup *__fastcall SetupRandAdvTriggerPopup::create(RandTriggerGameObject *a1, cocos2d::CCArray *a2)
{
char *v4; // x19
v4 = (char *)operator new(0x3D0u);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v4);
*(_QWORD *)v4 = off_100767138;
*((_QWORD *)v4 + 40) = off_100767708;
*((_QWORD *)v4 + 41) = &off_100767778;
*((_QWORD *)v4 + 42) = off_100767790;
*((_QWORD *)v4 + 43) = off_1007677B0;
*((_QWORD *)v4 + 44) = off_1007677D0;
*((_QWORD *)v4 + 51) = off_1007677F8;
*((_QWORD *)v4 + 54) = off_100767878;
*((_QWORD *)v4 + 79) = off_100767898;
*((_QWORD *)v4 + 80) = &off_1007678E0;
*((_QWORD *)v4 + 81) = off_1007678F8;
v4[937] = 0;
*((_QWORD *)v4 + 118) = 0;
*((_QWORD *)v4 + 120) = 0;
*((_QWORD *)v4 + 119) = 0;
*(_QWORD *)(v4 + 965) = 0;
if ( SetupRandAdvTriggerPopup::init((SetupRandAdvTriggerPopup *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (SetupRandAdvTriggerPopup *)v4;
}