//
// TeleportPortalObject::customObjectSetup from 0x1404b3050 to 0x1404b3444 (1012 bytes)
//
// 4 xrefs:
// > ??> @ 0x140611540
// > ??> @ 0x1406a84b0
// > ??> @ 0x1406a84e4
// > ??> @ 0x1406dca4c
//
// 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 TeleportPortalObject::customObjectSetup(
TeleportPortalObject *a1,
std::vector *a2,
std::vector *a3)
{
double v6; // xmm6_8
double v7; // xmm0_8
std::_Vector_val>::pointer m_bigStorage; // rcx
float v9; // xmm0_4
int v10; // ebp
int v11; // eax
std::_Vector_val>::pointer v12; // rcx
int v13; // eax
std::_Vector_val>::pointer v14; // rcx
int v15; // eax
std::_Vector_val>::pointer v16; // rcx
double v17; // xmm0_8
std::_Vector_val>::pointer v18; // rcx
float v19; // xmm0_4
int v20; // eax
std::_Vector_val>::pointer v21; // rcx
double v22; // xmm0_8
std::_Vector_val>::pointer v23; // rcx
float v24; // xmm0_4
double v25; // xmm0_8
std::_Vector_val>::pointer v26; // rcx
float v27; // xmm0_4
std::_Vector_val>::pointer v28; // rcx
float v29; // xmm0_4
int v30; // eax
std::_Vector_val>::pointer v31; // rcx
int v32; // eax
std::_Vector_val>::pointer v33; // rcx
int v34; // eax
std::_Vector_val>::pointer v35; // rcx
int v36; // eax
std::_Vector_val>::pointer v37; // rcx
int v38; // eax
std::_Vector_val>::pointer v39; // rcx
int v40; // eax
std::_Vector_val>::pointer v41; // rcx
int v42; // eax
std::_Vector_val>::pointer v43; // rcx
std::_Vector_val>::pointer v44; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( a1->m_objectID == 747 || a1->m_objectID == 2902 || a1->m_objectID == 3022 || a1->m_objectID == 3027 )
{
v6 = 0.0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 54) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 54;
if ( a2->_Mypair._Myval2._Myfirst[54].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v7 = atof(m_bigStorage->m_data.m_smallStorage._Elems);
}
else
{
v7 = 0.0;
}
v9 = v7;
v10 = 0;
a1->m_teleportYOffset = v9;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 55) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 55;
if ( a2->_Mypair._Myval2._Myfirst[55].m_data.m_capacity > 0xF )
v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage;
v11 = atoi(v12->m_data.m_smallStorage._Elems);
}
else
{
v11 = 0;
}
a1->m_teleportEase = v11 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )
{
v14 = a2->_Mypair._Myval2._Myfirst + 51;
if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF )
v14 = (std::_Vector_val>::pointer)v14->m_data.m_bigStorage;
v13 = atoi(v14->m_data.m_smallStorage._Elems);
}
else
{
v13 = 0;
}
a1->m_targetGroupID = v13;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 345) )
{
v16 = a2->_Mypair._Myval2._Myfirst + 345;
if ( a2->_Mypair._Myval2._Myfirst[345].m_data.m_capacity > 0xF )
v16 = (std::_Vector_val>::pointer)v16->m_data.m_bigStorage;
v15 = atoi(v16->m_data.m_smallStorage._Elems);
}
else
{
v15 = 0;
}
a1->m_staticForceEnabled = v15 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 346) )
{
v18 = a2->_Mypair._Myval2._Myfirst + 346;
if ( a2->_Mypair._Myval2._Myfirst[346].m_data.m_capacity > 0xF )
v18 = (std::_Vector_val>::pointer)v18->m_data.m_bigStorage;
v17 = atof(v18->m_data.m_smallStorage._Elems);
}
else
{
v17 = 0.0;
}
v19 = v17;
a1->m_staticForce = v19;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 347) )
{
v21 = a2->_Mypair._Myval2._Myfirst + 347;
if ( a2->_Mypair._Myval2._Myfirst[347].m_data.m_capacity > 0xF )
v21 = (std::_Vector_val>::pointer)v21->m_data.m_bigStorage;
v20 = atoi(v21->m_data.m_smallStorage._Elems);
}
else
{
v20 = 0;
}
a1->m_redirectForceEnabled = v20 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 350) )
{
v23 = a2->_Mypair._Myval2._Myfirst + 350;
if ( a2->_Mypair._Myval2._Myfirst[350].m_data.m_capacity > 0xF )
v23 = (std::_Vector_val>::pointer)v23->m_data.m_bigStorage;
v22 = atof(v23->m_data.m_smallStorage._Elems);
}
else
{
v22 = 0.0;
}
v24 = v22;
a1->m_redirectForceMod = v24;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 348) )
{
v26 = a2->_Mypair._Myval2._Myfirst + 348;
if ( a2->_Mypair._Myval2._Myfirst[348].m_data.m_capacity > 0xF )
v26 = (std::_Vector_val>::pointer)v26->m_data.m_bigStorage;
v25 = atof(v26->m_data.m_smallStorage._Elems);
}
else
{
v25 = 0.0;
}
v27 = v25;
a1->m_redirectForceMin = v27;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 349) )
{
v28 = a2->_Mypair._Myval2._Myfirst + 349;
if ( a2->_Mypair._Myval2._Myfirst[349].m_data.m_capacity > 0xF )
v28 = (std::_Vector_val>::pointer)v28->m_data.m_bigStorage;
v6 = atof(v28->m_data.m_smallStorage._Elems);
}
v29 = v6;
a1->m_redirectForceMax = v29;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 351) )
{
v31 = a2->_Mypair._Myval2._Myfirst + 351;
if ( a2->_Mypair._Myval2._Myfirst[351].m_data.m_capacity > 0xF )
v31 = (std::_Vector_val>::pointer)v31->m_data.m_bigStorage;
v30 = atoi(v31->m_data.m_smallStorage._Elems);
}
else
{
v30 = 0;
}
a1->m_saveOffset = v30 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 352) )
{
v33 = a2->_Mypair._Myval2._Myfirst + 352;
if ( a2->_Mypair._Myval2._Myfirst[352].m_data.m_capacity > 0xF )
v33 = (std::_Vector_val>::pointer)v33->m_data.m_bigStorage;
v32 = atoi(v33->m_data.m_smallStorage._Elems);
}
else
{
v32 = 0;
}
a1->m_ignoreX = v32 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 353) )
{
v35 = a2->_Mypair._Myval2._Myfirst + 353;
if ( a2->_Mypair._Myval2._Myfirst[353].m_data.m_capacity > 0xF )
v35 = (std::_Vector_val>::pointer)v35->m_data.m_bigStorage;
v34 = atoi(v35->m_data.m_smallStorage._Elems);
}
else
{
v34 = 0;
}
a1->m_ignoreY = v34 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 354) )
{
v37 = a2->_Mypair._Myval2._Myfirst + 354;
if ( a2->_Mypair._Myval2._Myfirst[354].m_data.m_capacity > 0xF )
v37 = (std::_Vector_val>::pointer)v37->m_data.m_bigStorage;
v36 = atoi(v37->m_data.m_smallStorage._Elems);
}
else
{
v36 = 0;
}
a1->m_gravityMode = v36;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 443) )
{
v39 = a2->_Mypair._Myval2._Myfirst + 443;
if ( a2->_Mypair._Myval2._Myfirst[443].m_data.m_capacity > 0xF )
v39 = (std::_Vector_val>::pointer)v39->m_data.m_bigStorage;
v38 = atoi(v39->m_data.m_smallStorage._Elems);
}
else
{
v38 = 0;
}
a1->m_staticForceAdditive = v38 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 464) )
{
v41 = a2->_Mypair._Myval2._Myfirst + 464;
if ( a2->_Mypair._Myval2._Myfirst[464].m_data.m_capacity > 0xF )
v41 = (std::_Vector_val>::pointer)v41->m_data.m_bigStorage;
v40 = atoi(v41->m_data.m_smallStorage._Elems);
}
else
{
v40 = 0;
}
a1->m_instantCamera = v40 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 510) )
{
v43 = a2->_Mypair._Myval2._Myfirst + 510;
if ( a2->_Mypair._Myval2._Myfirst[510].m_data.m_capacity > 0xF )
v43 = (std::_Vector_val>::pointer)v43->m_data.m_bigStorage;
v42 = atoi(v43->m_data.m_smallStorage._Elems);
}
else
{
v42 = 0;
}
a1->m_snapGround = v42 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 591) )
{
v44 = a2->_Mypair._Myval2._Myfirst + 591;
if ( a2->_Mypair._Myval2._Myfirst[591].m_data.m_capacity > 0xF )
v44 = (std::_Vector_val>::pointer)v44->m_data.m_bigStorage;
v10 = atoi(v44->m_data.m_smallStorage._Elems);
}
a1->m_redirectDash = v10 != 0;
}
}