//
// PlayerControlGameObject::customObjectSetup from 0x1404c2be0 to 0x1404c2d57 (375 bytes)
//
// 2 xrefs:
// > ??> @ 0x140619a30
// > ??> @ 0x1406dcf8c
//
// 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 PlayerControlGameObject::customObjectSetup(
PlayerControlGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // ebx
int v7; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v9; // eax
std::_Vector_val>::pointer v10; // rcx
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
std::_Vector_val>::pointer v17; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 138) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 138;
if ( a2->_Mypair._Myval2._Myfirst[138].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v7 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);
}
else
{
v7 = 0;
}
a1->m_targetPlayer1 = v7 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 200) )
{
v10 = a2->_Mypair._Myval2._Myfirst + 200;
if ( a2->_Mypair._Myval2._Myfirst[200].m_data.m_capacity > 0xF )
v10 = (std::_Vector_val>::pointer)v10->m_data.m_bigStorage;
v9 = atoi(v10->m_data.m_smallStorage._Elems);
}
else
{
v9 = 0;
}
a1->m_targetPlayer2 = v9 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 540) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 540;
if ( a2->_Mypair._Myval2._Myfirst[540].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_stopJump = v11 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 541) )
{
v14 = a2->_Mypair._Myval2._Myfirst + 541;
if ( a2->_Mypair._Myval2._Myfirst[541].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_stopMove = v13 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 542) )
{
v16 = a2->_Mypair._Myval2._Myfirst + 542;
if ( a2->_Mypair._Myval2._Myfirst[542].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_stopRotation = v15 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 543) )
{
v17 = a2->_Mypair._Myval2._Myfirst + 543;
if ( a2->_Mypair._Myval2._Myfirst[543].m_data.m_capacity > 0xF )
v17 = (std::_Vector_val>::pointer)v17->m_data.m_bigStorage;
v6 = atoi(v17->m_data.m_smallStorage._Elems);
}
a1->m_stopSlide = v6 != 0;
}