//
// TeleportPortalObject::create from 0x10019e3b0 to 0x10019e4dc (300 bytes)
//
// 3 xrefs:
// > PlayLayer::addObject @ 0x10007f8e0
// > GameObject::createWithKey @ 0x10066ec0a
// > GameObject::createWithKey @ 0x10066eda1
//
// 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 12:25:58 +0000
//
char *__fastcall TeleportPortalObject::create(__int64 a1, char a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x778u);
EffectGameObject::EffectGameObject(v2);
*((_WORD *)v2 + 920) = 0;
*(_QWORD *)v2 = off_100AD1918;
*((_QWORD *)v2 + 40) = off_100AD2088;
*((_QWORD *)v2 + 43) = off_100AD2108;
*((_QWORD *)v2 + 231) = 0;
v2[1856] = 0;
*((_DWORD *)v2 + 465) = 0;
*((_WORD *)v2 + 932) = 0;
*((_DWORD *)v2 + 467) = 0;
v2[1872] = 0;
*((_DWORD *)v2 + 469) = 1065353216;
*((_QWORD *)v2 + 235) = 0;
*(_DWORD *)(v2 + 1887) = 0;
*(_QWORD *)(v2 + 1892) = 0;
sub_1002782A0(v2 + 1900);
if ( (unsigned __int8)EnhancedGameObject::init(v2, a1) )
{
*((_DWORD *)v2 + 312) = 1;
v2[1450] = -1;
*((_WORD *)v2 + 724) = -1;
*((_DWORD *)v2 + 363) = 1056964608;
v2[1636] = 1;
if ( !a2 )
v2[1472] = 1;
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}