//
// TeleportPortalObject::customObjectSetup from 0x1003884d4 to 0x1003888a8 (980 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007ff768
//
// 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
//
void __fastcall TeleportPortalObject::customObjectSetup(
TeleportPortalObject *a1,
std::vector *a2,
std::vector *a3)
{
int m_objectID; // w8
std::__vector_base::pointer begin; // x21
std::__vector_base::pointer capacitym1; // x0
float v9; // s0
void *v10; // x8
std::__vector_base::pointer v11; // x0
std::__vector_base::pointer v12; // x0
int v13; // w0
void *v14; // x8
std::__vector_base::pointer v15; // x0
std::__vector_base::pointer v16; // x0
float v17; // s0
void *v18; // x8
std::__vector_base::pointer v19; // x0
float v20; // s8
float v21; // s0
std::__vector_base::pointer v22; // x0
std::__vector_base::pointer v23; // x0
std::__vector_base::pointer v24; // x0
float v25; // s0
void *v26; // x8
std::__vector_base::pointer v27; // x0
void *v28; // x8
std::__vector_base::pointer v29; // x0
void *v30; // x8
std::__vector_base::pointer v31; // x0
std::__vector_base::pointer v32; // x0
int v33; // w0
void *v34; // x8
std::__vector_base::pointer v35; // x0
void *v36; // x8
std::__vector_base::pointer v37; // x0
void *v38; // x8
std::__vector_base::pointer v39; // x0
void *v40; // x8
std::__vector_base::pointer v41; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
m_objectID = a1->m_objectID;
if ( m_objectID > 3021 )
{
if ( m_objectID != 3027 && m_objectID != 3022 )
return;
}
else if ( m_objectID != 747 && m_objectID != 2902 )
{
return;
}
begin = a3->__begin_;
if ( begin[54] )
{
capacitym1 = a2->__begin_ + 54;
if ( a2->__begin_[54].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v9 = atof((const char *)capacitym1);
}
else
{
v9 = 0.0;
}
a1->m_teleportYOffset = v9;
v10 = begin[55];
if ( v10 )
{
v11 = a2->__begin_ + 55;
if ( a2->__begin_[55].m_data.m_short.shortStorage.__elems_[22] < 0 )
v11 = (std::__vector_base::pointer)v11->m_data.m_long.capacitym1;
LOBYTE(v10) = atoi((const char *)v11) != 0;
}
a1->m_teleportEase = (char)v10;
if ( begin[51] )
{
v12 = a2->__begin_ + 51;
if ( a2->__begin_[51].m_data.m_short.shortStorage.__elems_[22] < 0 )
v12 = (std::__vector_base::pointer)v12->m_data.m_long.capacitym1;
v13 = atoi((const char *)v12);
}
else
{
v13 = 0;
}
a1->m_targetGroupID = v13;
v14 = begin[345];
if ( v14 )
{
v15 = a2->__begin_ + 345;
if ( a2->__begin_[345].m_data.m_short.shortStorage.__elems_[22] < 0 )
v15 = (std::__vector_base::pointer)v15->m_data.m_long.capacitym1;
LOBYTE(v14) = atoi((const char *)v15) != 0;
}
a1->m_staticForceEnabled = (char)v14;
if ( begin[346] )
{
v16 = a2->__begin_ + 346;
if ( a2->__begin_[346].m_data.m_short.shortStorage.__elems_[22] < 0 )
v16 = (std::__vector_base::pointer)v16->m_data.m_long.capacitym1;
v17 = atof((const char *)v16);
}
else
{
v17 = 0.0;
}
a1->m_staticForce = v17;
v18 = begin[347];
if ( v18 )
{
v19 = a2->__begin_ + 347;
if ( a2->__begin_[347].m_data.m_short.shortStorage.__elems_[22] < 0 )
v19 = (std::__vector_base::pointer)v19->m_data.m_long.capacitym1;
LOBYTE(v18) = atoi((const char *)v19) != 0;
}
a1->m_redirectForceEnabled = (char)v18;
v20 = 0.0;
v21 = 0.0;
if ( begin[350] )
{
v22 = a2->__begin_ + 350;
if ( a2->__begin_[350].m_data.m_short.shortStorage.__elems_[22] < 0 )
v22 = (std::__vector_base::pointer)v22->m_data.m_long.capacitym1;
v21 = atof((const char *)v22);
}
a1->m_redirectForceMod = v21;
if ( begin[348] )
{
v23 = a2->__begin_ + 348;
if ( a2->__begin_[348].m_data.m_short.shortStorage.__elems_[22] < 0 )
v23 = (std::__vector_base::pointer)v23->m_data.m_long.capacitym1;
v20 = atof((const char *)v23);
}
a1->m_redirectForceMin = v20;
if ( begin[349] )
{
v24 = a2->__begin_ + 349;
if ( a2->__begin_[349].m_data.m_short.shortStorage.__elems_[22] < 0 )
v24 = (std::__vector_base::pointer)v24->m_data.m_long.capacitym1;
v25 = atof((const char *)v24);
}
else
{
v25 = 0.0;
}
a1->m_redirectForceMax = v25;
v26 = begin[351];
if ( v26 )
{
v27 = a2->__begin_ + 351;
if ( a2->__begin_[351].m_data.m_short.shortStorage.__elems_[22] < 0 )
v27 = (std::__vector_base::pointer)v27->m_data.m_long.capacitym1;
LOBYTE(v26) = atoi((const char *)v27) != 0;
}
a1->m_saveOffset = (char)v26;
v28 = begin[352];
if ( v28 )
{
v29 = a2->__begin_ + 352;
if ( a2->__begin_[352].m_data.m_short.shortStorage.__elems_[22] < 0 )
v29 = (std::__vector_base::pointer)v29->m_data.m_long.capacitym1;
LOBYTE(v28) = atoi((const char *)v29) != 0;
}
a1->m_ignoreX = (char)v28;
v30 = begin[353];
if ( v30 )
{
v31 = a2->__begin_ + 353;
if ( a2->__begin_[353].m_data.m_short.shortStorage.__elems_[22] < 0 )
v31 = (std::__vector_base::pointer)v31->m_data.m_long.capacitym1;
LOBYTE(v30) = atoi((const char *)v31) != 0;
}
a1->m_ignoreY = (char)v30;
if ( begin[354] )
{
v32 = a2->__begin_ + 354;
if ( a2->__begin_[354].m_data.m_short.shortStorage.__elems_[22] < 0 )
v32 = (std::__vector_base::pointer)v32->m_data.m_long.capacitym1;
v33 = atoi((const char *)v32);
}
else
{
v33 = 0;
}
a1->m_gravityMode = v33;
v34 = begin[443];
if ( v34 )
{
v35 = a2->__begin_ + 443;
if ( a2->__begin_[443].m_data.m_short.shortStorage.__elems_[22] < 0 )
v35 = (std::__vector_base::pointer)v35->m_data.m_long.capacitym1;
LOBYTE(v34) = atoi((const char *)v35) != 0;
}
a1->m_staticForceAdditive = (char)v34;
v36 = begin[464];
if ( v36 )
{
v37 = a2->__begin_ + 464;
if ( a2->__begin_[464].m_data.m_short.shortStorage.__elems_[22] < 0 )
v37 = (std::__vector_base::pointer)v37->m_data.m_long.capacitym1;
LOBYTE(v36) = atoi((const char *)v37) != 0;
}
a1->m_instantCamera = (char)v36;
v38 = begin[510];
if ( v38 )
{
v39 = a2->__begin_ + 510;
if ( a2->__begin_[510].m_data.m_short.shortStorage.__elems_[22] < 0 )
v39 = (std::__vector_base::pointer)v39->m_data.m_long.capacitym1;
LOBYTE(v38) = atoi((const char *)v39) != 0;
}
a1->m_snapGround = (char)v38;
v40 = begin[591];
if ( v40 )
{
v41 = a2->__begin_ + 591;
if ( a2->__begin_[591].m_data.m_short.shortStorage.__elems_[22] < 0 )
v41 = (std::__vector_base::pointer)v41->m_data.m_long.capacitym1;
LOBYTE(v40) = atoi((const char *)v41) != 0;
}
a1->m_redirectDash = (char)v40;
}