//
// CheckpointGameObject::customObjectSetup from 0x1001d6870 to 0x1001d69a4 (308 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d0fe8
//
// 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; // r12
int v6; // r15d
int v7; // eax
std::__vector_base::pointer v8; // rdi
const char *longStorage; // rdi
int v10; // r13d
std::__vector_base::pointer v11; // rdi
const char *elems; // rdi
int v13; // eax
std::__vector_base::pointer v14; // rdi
const char *v15; // rdi
std::__vector_base::pointer v16; // rdi
const char *v17; // rdi
bool v18; // al
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v6 = 0;
v7 = 0;
if ( begin[51] )
{
v8 = a2->__begin_;
if ( (a2->__begin_[51].m_data.m_short.sizex2 & 1) != 0 )
longStorage = v8[51].m_data.m_long.longStorage;
else
longStorage = v8[51].m_data.m_short.shortStorage.__elems_;
v7 = atoi(longStorage);
}
if ( v7 <= 0 )
v7 = 0;
v10 = 9999;
if ( v7 >= 9999 )
v7 = 9999;
a1->m_targetGroupID = v7;
if ( begin[71] )
{
v11 = a2->__begin_;
if ( (a2->__begin_[71].m_data.m_short.sizex2 & 1) != 0 )
elems = v11[71].m_data.m_long.longStorage;
else
elems = v11[71].m_data.m_short.shortStorage.__elems_;
v6 = atoi(elems);
}
v13 = 0;
if ( v6 <= 0 )
v6 = 0;
if ( v6 < 9999 )
v10 = v6;
a1->m_centerGroupID = v10;
if ( begin[448] )
{
v14 = a2->__begin_;
if ( (a2->__begin_[448].m_data.m_short.sizex2 & 1) != 0 )
v15 = v14[448].m_data.m_long.longStorage;
else
v15 = v14[448].m_data.m_short.shortStorage.__elems_;
v13 = atoi(v15);
}
a1->m_respawnID = v13;
if ( begin[138] )
{
v16 = a2->__begin_;
if ( (a2->__begin_[138].m_data.m_short.sizex2 & 1) != 0 )
v17 = v16[138].m_data.m_long.longStorage;
else
v17 = v16[138].m_data.m_short.shortStorage.__elems_;
v18 = atoi(v17) != 0;
}
else
{
v18 = 0;
}
a1->m_targetPlayer1 = v18;
}