//
// TeleportPortalObject::create from 0x10042dd98 to 0x10042de30 (152 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x1001417f0
// > GameObject::createWithKey @ 0x1002f19a4
//
// This function is hookable on this platform (idp: arm, 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:05:04 +0000
//
_DWORD *__fastcall TeleportPortalObject::create(__int64 a1, char a2)
{
_DWORD *v4; // x19
v4 = operator new(0x778u);
sub_100441084();
if ( (unsigned int)EnhancedGameObject::init((__int64)v4, a1) )
{
v4[312] = 1;
*((_BYTE *)v4 + 1450) = -1;
*((_WORD *)v4 + 724) = -1;
v4[363] = 1056964608;
*((_BYTE *)v4 + 1636) = 1;
if ( (a2 & 1) == 0 )
*((_BYTE *)v4 + 1472) = 1;
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}