//
// TeleportPortalObject::create from 0x1406536b0 to 0x1406537c4 (276 bytes)
//
// 4 xrefs:
// > GameObject::createWithKey @ 0x1402894dc
// > GameObject::createWithKey @ 0x1402894f8
// > PlayLayer::addObject @ 0x14050caa0
// > ??> @ 0x140931580
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:44 +0000
//
// Hidden C++ exception states: #wind=2
char *__fastcall TeleportPortalObject::create(const char *a1, char a2)
{
char *v4; // rdi
v4 = (char *)operator new(0x788u);
EffectGameObject::EffectGameObject((__int64)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((__int64)v4, a1) )
{
if ( !a2 )
v4[1488] = 1;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return nullptr;
}
}