//
// TeleportPortalObject::create from 0x1404b21c0 to 0x1404b22d1 (273 bytes)
//
// 4 xrefs:
// > GameObject::createWithKey @ 0x14018c3a3
// > GameObject::createWithKey @ 0x14018c3bf
// > PlayLayer::addObject @ 0x1403ae156
// > ??> @ 0x1406dc9bc
//
// 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
//
// Hidden C++ exception states: #wind=2
TeleportPortalObject *TeleportPortalObject::create(const char *a1, bool a2)
{
char *v4; // rdi
v4 = (char *)operator new(0x788u);
EffectGameObject::EffectGameObject((EffectGameObject *)v4);
*((_WORD *)v4 + 928) = 0;
*(_QWORD *)v4 = &TeleportPortalObject::`vftable';
*((_QWORD *)v4 + 40) = &TeleportPortalObject::`vftable';
*((_QWORD *)v4 + 43) = &TeleportPortalObject::`vftable';
*((_QWORD *)v4 + 233) = 0;
v4[1872] = 0;
*((_DWORD *)v4 + 469) = 0;
*((_WORD *)v4 + 940) = 0;
*((_DWORD *)v4 + 471) = 0;
v4[1888] = 0;
*(_QWORD *)(v4 + 1892) = 1065353216;
*((_DWORD *)v4 + 475) = 0;
*((_WORD *)v4 + 952) = 0;
v4[1906] = 0;
*(_QWORD *)(v4 + 1908) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 1916));
if ( EffectGameObject::init((EffectGameObject *)v4, a1) )
{
if ( !a2 )
v4[1488] = 1;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (TeleportPortalObject *)v4;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return nullptr;
}
}