//
// TeleportPortalObject::create from 0x4eb0dc to 0x4eb1ae (210 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x400400
// > GameObject::createWithKey @ 0x45bc2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:08 +0000
//
int *__fastcall TeleportPortalObject::create(TeleportPortalObject *this, const char *a2, bool a3)
{
int *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (int *)operator new(0x6B0u);
EffectGameObject::EffectGameObject((EffectGameObject *)v5);
*((_BYTE *)v5 + 1648) = 0;
*((_BYTE *)v5 + 1649) = 0;
*v5 = (int)&off_C9F660;
v5[66] = (int)&off_C9FA18;
v5[413] = 0;
*((_BYTE *)v5 + 1656) = 0;
v5[70] = (int)&off_C9FA58;
v5[415] = 0;
*((_BYTE *)v5 + 1664) = 0;
*((_BYTE *)v5 + 1665) = 0;
v5[417] = 0;
*((_BYTE *)v5 + 1672) = 0;
v5[419] = 1065353216;
v5[420] = 0;
v5[421] = 0;
*((_BYTE *)v5 + 1688) = 0;
*((_BYTE *)v5 + 1689) = 0;
*((_BYTE *)v5 + 1690) = 0;
v5[423] = 0;
*((_BYTE *)v5 + 1696) = 0;
*((_BYTE *)v5 + 1697) = 0;
*((_BYTE *)v5 + 1698) = 0;
*((_BYTE *)v5 + 1699) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 425));
if ( TeleportPortalObject::init((TeleportPortalObject *)v5, (const char *)this, (int)a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v6 = *v5;
v7 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}