//
// CheckpointGameObject::customObjectSetup from 0x100390630 to 0x100390738 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x100802060
//
// 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 CheckpointGameObject::customObjectSetup(
CheckpointGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // x21
std::__vector_base::pointer capacitym1; // x0
int v8; // w0
int v9; // w8
std::__vector_base::pointer v10; // x0
int v11; // w0
int v12; // w8
std::__vector_base::pointer v13; // x0
int v14; // w0
void *v15; // x8
std::__vector_base::pointer v16; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
if ( begin[51] )
{
capacitym1 = a2->__begin_ + 51;
if ( a2->__begin_[51].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v8 = atoi((const char *)capacitym1);
}
else
{
v8 = 0;
}
v9 = v8 & ~(v8 >> 31);
if ( v9 >= 9999 )
v9 = 9999;
a1->m_targetGroupID = v9;
if ( begin[71] )
{
v10 = a2->__begin_ + 71;
if ( a2->__begin_[71].m_data.m_short.shortStorage.__elems_[22] < 0 )
v10 = (std::__vector_base::pointer)v10->m_data.m_long.capacitym1;
v11 = atoi((const char *)v10);
}
else
{
v11 = 0;
}
v12 = v11 & ~(v11 >> 31);
if ( v12 >= 9999 )
v12 = 9999;
a1->m_centerGroupID = v12;
if ( begin[448] )
{
v13 = a2->__begin_ + 448;
if ( a2->__begin_[448].m_data.m_short.shortStorage.__elems_[22] < 0 )
v13 = (std::__vector_base::pointer)v13->m_data.m_long.capacitym1;
v14 = atoi((const char *)v13);
}
else
{
v14 = 0;
}
a1->m_respawnID = v14;
v15 = begin[138];
if ( v15 )
{
v16 = a2->__begin_ + 138;
if ( a2->__begin_[138].m_data.m_short.shortStorage.__elems_[22] < 0 )
v16 = (std::__vector_base::pointer)v16->m_data.m_long.capacitym1;
LOBYTE(v15) = atoi((const char *)v16) != 0;
}
a1->m_targetPlayer1 = (char)v15;
}