//
// ItemTriggerGameObject::customObjectSetup from 0x100395bc8 to 0x100396244 (1660 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008058d0
//
// 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 ItemTriggerGameObject::customObjectSetup(
ItemTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int m_objectID; // w8
std::__vector_base::pointer v7; // x21
std::__vector_base::pointer v8; // x0
int v9; // w0
std::__vector_base::pointer v10; // x0
int v11; // w0
std::__vector_base::pointer begin; // x21
std::__vector_base::pointer capacitym1; // x0
int v14; // w0
std::__vector_base::pointer v15; // x0
int v16; // w0
std::__vector_base::pointer v17; // x0
int v18; // w0
std::__vector_base::pointer v19; // x0
int v20; // w0
std::__vector_base::pointer v21; // x0
int v22; // w0
std::__vector_base::pointer v23; // x0
int v24; // w0
float v25; // s8
float v26; // s0
std::__vector_base::pointer v27; // x0
std::__vector_base::pointer v28; // x0
std::__vector_base::pointer v29; // x0
int v30; // w0
std::__vector_base::pointer v31; // x0
int v32; // w0
std::__vector_base::pointer v33; // x0
int v34; // w0
std::__vector_base::pointer v35; // x0
float v36; // s0
void *v37; // x8
std::__vector_base::pointer v38; // x0
void *v39; // x8
std::__vector_base::pointer v40; // x0
void *v41; // x8
std::__vector_base::pointer v42; // x0
void *v43; // x8
std::__vector_base::pointer v44; // x0
std::__vector_base::pointer v45; // x0
int v46; // w0
std::__vector_base::pointer v47; // x0
int v48; // w0
std::__vector_base::pointer v49; // x0
int v50; // w0
std::__vector_base::pointer v51; // x0
int v52; // w0
std::__vector_base::pointer v53; // x0
int v54; // w0
std::__vector_base::pointer v55; // x0
float v56; // s0
std::__vector_base::pointer v57; // x0
int v58; // w0
std::__vector_base::pointer v59; // x0
int v60; // w0
std::__vector_base::pointer v61; // x0
int v62; // w0
std::__vector_base::pointer v63; // x0
int v64; // w0
std::__vector_base::pointer v65; // x0
int v66; // w0
std::__vector_base::pointer v67; // x0
int v68; // w0
std::__vector_base::pointer v69; // x0
int v70; // w0
EffectGameObject::customObjectSetup(a1, a2, a3);
m_objectID = a1->m_objectID;
if ( m_objectID == 3641 )
{
begin = a3->__begin_;
if ( begin[80] )
{
capacitym1 = a2->__begin_ + 80;
if ( a2->__begin_[80].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v14 = atoi((const char *)capacitym1);
}
else
{
v14 = 0;
}
a1->m_itemID = v14;
v37 = begin[491];
if ( v37 )
{
v38 = a2->__begin_ + 491;
if ( a2->__begin_[491].m_data.m_short.shortStorage.__elems_[22] < 0 )
v38 = (std::__vector_base::pointer)v38->m_data.m_long.capacitym1;
LOBYTE(v37) = atoi((const char *)v38) != 0;
}
a1->m_persistent = (char)v37;
v39 = begin[492];
if ( v39 )
{
v40 = a2->__begin_ + 492;
if ( a2->__begin_[492].m_data.m_short.shortStorage.__elems_[22] < 0 )
v40 = (std::__vector_base::pointer)v40->m_data.m_long.capacitym1;
LOBYTE(v39) = atoi((const char *)v40) != 0;
}
a1->m_targetAll = (char)v39;
v41 = begin[493];
if ( v41 )
{
v42 = a2->__begin_ + 493;
if ( a2->__begin_[493].m_data.m_short.shortStorage.__elems_[22] < 0 )
v42 = (std::__vector_base::pointer)v42->m_data.m_long.capacitym1;
LOBYTE(v41) = atoi((const char *)v42) != 0;
}
a1->m_reset = (char)v41;
v43 = begin[494];
if ( v43 )
{
v44 = a2->__begin_ + 494;
if ( a2->__begin_[494].m_data.m_short.shortStorage.__elems_[22] < 0 )
v44 = (std::__vector_base::pointer)v44->m_data.m_long.capacitym1;
LOBYTE(v43) = atoi((const char *)v44) != 0;
}
a1->m_timer = (char)v43;
}
else
{
if ( m_objectID == 3620 )
{
v7 = a3->__begin_;
if ( v7[80] )
{
v10 = a2->__begin_ + 80;
if ( a2->__begin_[80].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;
}
a1->m_itemID = v11;
if ( v7[95] )
{
v15 = a2->__begin_ + 95;
if ( a2->__begin_[95].m_data.m_short.shortStorage.__elems_[22] < 0 )
v15 = (std::__vector_base::pointer)v15->m_data.m_long.capacitym1;
v16 = atoi((const char *)v15);
}
else
{
v16 = 0;
}
a1->m_itemID2 = v16;
if ( v7[51] )
{
v17 = a2->__begin_ + 51;
if ( a2->__begin_[51].m_data.m_short.shortStorage.__elems_[22] < 0 )
v17 = (std::__vector_base::pointer)v17->m_data.m_long.capacitym1;
v18 = atoi((const char *)v17);
}
else
{
v18 = 0;
}
a1->m_targetGroupID = v18;
if ( v7[71] )
{
v19 = a2->__begin_ + 71;
if ( a2->__begin_[71].m_data.m_short.shortStorage.__elems_[22] < 0 )
v19 = (std::__vector_base::pointer)v19->m_data.m_long.capacitym1;
v20 = atoi((const char *)v19);
}
else
{
v20 = 0;
}
a1->m_centerGroupID = v20;
if ( v7[476] )
{
v21 = a2->__begin_ + 476;
if ( a2->__begin_[476].m_data.m_short.shortStorage.__elems_[22] < 0 )
v21 = (std::__vector_base::pointer)v21->m_data.m_long.capacitym1;
v22 = atoi((const char *)v21);
}
else
{
v22 = 0;
}
a1->m_item1Mode = v22;
if ( v7[477] )
{
v23 = a2->__begin_ + 477;
if ( a2->__begin_[477].m_data.m_short.shortStorage.__elems_[22] < 0 )
v23 = (std::__vector_base::pointer)v23->m_data.m_long.capacitym1;
v24 = atoi((const char *)v23);
}
else
{
v24 = 0;
}
a1->m_item2Mode = v24;
v25 = 0.0;
v26 = 0.0;
if ( v7[479] )
{
v27 = a2->__begin_ + 479;
if ( a2->__begin_[479].m_data.m_short.shortStorage.__elems_[22] < 0 )
v27 = (std::__vector_base::pointer)v27->m_data.m_long.capacitym1;
v26 = atof((const char *)v27);
}
a1->m_mod1 = v26;
if ( v7[483] )
{
v28 = a2->__begin_ + 483;
if ( a2->__begin_[483].m_data.m_short.shortStorage.__elems_[22] < 0 )
v28 = (std::__vector_base::pointer)v28->m_data.m_long.capacitym1;
v25 = atof((const char *)v28);
}
a1->m_mod2 = v25;
if ( v7[480] )
{
v29 = a2->__begin_ + 480;
if ( a2->__begin_[480].m_data.m_short.shortStorage.__elems_[22] < 0 )
v29 = (std::__vector_base::pointer)v29->m_data.m_long.capacitym1;
v30 = atoi((const char *)v29);
}
else
{
v30 = 0;
}
a1->m_resultType1 = v30;
if ( v7[481] )
{
v31 = a2->__begin_ + 481;
if ( a2->__begin_[481].m_data.m_short.shortStorage.__elems_[22] < 0 )
v31 = (std::__vector_base::pointer)v31->m_data.m_long.capacitym1;
v32 = atoi((const char *)v31);
}
else
{
v32 = 0;
}
a1->m_resultType2 = v32;
if ( v7[482] )
{
v33 = a2->__begin_ + 482;
if ( a2->__begin_[482].m_data.m_short.shortStorage.__elems_[22] < 0 )
v33 = (std::__vector_base::pointer)v33->m_data.m_long.capacitym1;
v34 = atoi((const char *)v33);
}
else
{
v34 = 0;
}
a1->m_resultType3 = v34;
if ( v7[484] )
{
v35 = a2->__begin_ + 484;
if ( a2->__begin_[484].m_data.m_short.shortStorage.__elems_[22] < 0 )
v35 = (std::__vector_base::pointer)v35->m_data.m_long.capacitym1;
v36 = atof((const char *)v35);
}
else
{
v36 = 0.0;
}
a1->m_tolerance = v36;
}
else
{
if ( m_objectID != 3619 )
return;
v7 = a3->__begin_;
if ( v7[80] )
{
v8 = a2->__begin_ + 80;
if ( a2->__begin_[80].m_data.m_short.shortStorage.__elems_[22] < 0 )
v8 = (std::__vector_base::pointer)v8->m_data.m_long.capacitym1;
v9 = atoi((const char *)v8);
}
else
{
v9 = 0;
}
a1->m_itemID = v9;
if ( v7[95] )
{
v45 = a2->__begin_ + 95;
if ( a2->__begin_[95].m_data.m_short.shortStorage.__elems_[22] < 0 )
v45 = (std::__vector_base::pointer)v45->m_data.m_long.capacitym1;
v46 = atoi((const char *)v45);
}
else
{
v46 = 0;
}
a1->m_itemID2 = v46;
if ( v7[476] )
{
v47 = a2->__begin_ + 476;
if ( a2->__begin_[476].m_data.m_short.shortStorage.__elems_[22] < 0 )
v47 = (std::__vector_base::pointer)v47->m_data.m_long.capacitym1;
v48 = atoi((const char *)v47);
}
else
{
v48 = 0;
}
a1->m_item1Mode = v48;
if ( v7[477] )
{
v49 = a2->__begin_ + 477;
if ( a2->__begin_[477].m_data.m_short.shortStorage.__elems_[22] < 0 )
v49 = (std::__vector_base::pointer)v49->m_data.m_long.capacitym1;
v50 = atoi((const char *)v49);
}
else
{
v50 = 0;
}
a1->m_item2Mode = v50;
if ( v7[478] )
{
v51 = a2->__begin_ + 478;
if ( a2->__begin_[478].m_data.m_short.shortStorage.__elems_[22] < 0 )
v51 = (std::__vector_base::pointer)v51->m_data.m_long.capacitym1;
v52 = atoi((const char *)v51);
}
else
{
v52 = 0;
}
a1->m_targetItemMode = v52;
if ( v7[51] )
{
v53 = a2->__begin_ + 51;
if ( a2->__begin_[51].m_data.m_short.shortStorage.__elems_[22] < 0 )
v53 = (std::__vector_base::pointer)v53->m_data.m_long.capacitym1;
v54 = atoi((const char *)v53);
}
else
{
v54 = 0;
}
a1->m_targetGroupID = v54;
if ( v7[479] )
{
v55 = a2->__begin_ + 479;
if ( a2->__begin_[479].m_data.m_short.shortStorage.__elems_[22] < 0 )
v55 = (std::__vector_base::pointer)v55->m_data.m_long.capacitym1;
v56 = atof((const char *)v55);
}
else
{
v56 = 0.0;
}
a1->m_mod1 = v56;
if ( v7[480] )
{
v57 = a2->__begin_ + 480;
if ( a2->__begin_[480].m_data.m_short.shortStorage.__elems_[22] < 0 )
v57 = (std::__vector_base::pointer)v57->m_data.m_long.capacitym1;
v58 = atoi((const char *)v57);
}
else
{
v58 = 0;
}
a1->m_resultType1 = v58;
if ( v7[481] )
{
v59 = a2->__begin_ + 481;
if ( a2->__begin_[481].m_data.m_short.shortStorage.__elems_[22] < 0 )
v59 = (std::__vector_base::pointer)v59->m_data.m_long.capacitym1;
v60 = atoi((const char *)v59);
}
else
{
v60 = 0;
}
a1->m_resultType2 = v60;
if ( v7[482] )
{
v61 = a2->__begin_ + 482;
if ( a2->__begin_[482].m_data.m_short.shortStorage.__elems_[22] < 0 )
v61 = (std::__vector_base::pointer)v61->m_data.m_long.capacitym1;
v62 = atoi((const char *)v61);
}
else
{
v62 = 0;
}
a1->m_resultType3 = v62;
}
if ( v7[485] )
{
v63 = a2->__begin_ + 485;
if ( a2->__begin_[485].m_data.m_short.shortStorage.__elems_[22] < 0 )
v63 = (std::__vector_base::pointer)v63->m_data.m_long.capacitym1;
v64 = atoi((const char *)v63);
}
else
{
v64 = 0;
}
a1->m_roundType1 = v64;
if ( v7[486] )
{
v65 = a2->__begin_ + 486;
if ( a2->__begin_[486].m_data.m_short.shortStorage.__elems_[22] < 0 )
v65 = (std::__vector_base::pointer)v65->m_data.m_long.capacitym1;
v66 = atoi((const char *)v65);
}
else
{
v66 = 0;
}
a1->m_roundType2 = v66;
if ( v7[578] )
{
v67 = a2->__begin_ + 578;
if ( a2->__begin_[578].m_data.m_short.shortStorage.__elems_[22] < 0 )
v67 = (std::__vector_base::pointer)v67->m_data.m_long.capacitym1;
v68 = atoi((const char *)v67);
}
else
{
v68 = 0;
}
a1->m_signType1 = v68;
if ( v7[579] )
{
v69 = a2->__begin_ + 579;
if ( a2->__begin_[579].m_data.m_short.shortStorage.__elems_[22] < 0 )
v69 = (std::__vector_base::pointer)v69->m_data.m_long.capacitym1;
v70 = atoi((const char *)v69);
}
else
{
v70 = 0;
}
a1->m_signType2 = v70;
}
}