//
// ShaderGameObject::customObjectSetup from 0x10037c174 to 0x10037c8ec (1912 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007fcf00
//
// 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 ShaderGameObject::customObjectSetup(
ShaderGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // x22
float v7; // s8
float v8; // s0
std::__vector_base::pointer capacitym1; // x0
std::__vector_base::pointer v10; // x0
float v11; // s8
float v12; // s0
std::__vector_base::pointer v13; // x0
std::__vector_base::pointer v14; // x0
float v15; // s8
float v16; // s0
std::__vector_base::pointer v17; // x0
std::__vector_base::pointer v18; // x0
float v19; // s8
float v20; // s0
std::__vector_base::pointer v21; // x0
std::__vector_base::pointer v22; // x0
float v23; // s8
float v24; // s0
std::__vector_base::pointer v25; // x0
std::__vector_base::pointer v26; // x0
void *v27; // x8
std::__vector_base::pointer v28; // x23
std::__vector_base::pointer v29; // x21
const char *v30; // x0
float v31; // s0
float v32; // s8
float v33; // s0
std::__vector_base::pointer v34; // x0
std::__vector_base::pointer v35; // x0
void *v36; // x8
std::__vector_base::pointer v37; // x0
void *v38; // x8
std::__vector_base::pointer v39; // x0
void *v40; // x8
std::__vector_base::pointer v41; // x0
void *v42; // x8
std::__vector_base::pointer v43; // x0
void *v44; // x8
std::__vector_base::pointer v45; // x0
void *v46; // x8
std::__vector_base::pointer v47; // x0
void *v48; // x8
std::__vector_base::pointer v49; // x0
void *v50; // x8
std::__vector_base::pointer v51; // x0
void *v52; // x8
std::__vector_base::pointer v53; // x0
void *v54; // x8
std::__vector_base::pointer v55; // x0
void *v56; // x8
std::__vector_base::pointer v57; // x0
void *v58; // x8
std::__vector_base::pointer v59; // x0
std::__vector_base::pointer v60; // x0
float v61; // s0
std::__vector_base::pointer v62; // x0
EasingType v63; // w0
std::__vector_base::pointer v64; // x0
float v65; // s0
std::__vector_base::pointer v66; // x0
int v67; // w0
int v68; // w8
std::__vector_base::pointer v69; // x0
int v70; // w0
int v71; // w8
void *v72; // x8
std::__vector_base::pointer v73; // x0
void *v74; // x8
std::__vector_base::pointer v75; // x0
void *v76; // x8
std::__vector_base::pointer v77; // x0
std::__vector_base::pointer v78; // x0
int v79; // w0
std::__vector_base::pointer v80; // x0
int v81; // w0
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v7 = 0.0;
v8 = 0.0;
if ( *((_QWORD *)a3->__begin_ + 175) )
{
capacitym1 = a2->__begin_ + 175;
if ( a2->__begin_[175].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v8 = atof((const char *)capacitym1);
}
a1->m_speed = v8;
if ( begin[176] )
{
v10 = a2->__begin_ + 176;
if ( a2->__begin_[176].m_data.m_short.shortStorage.__elems_[22] < 0 )
v10 = (std::__vector_base::pointer)v10->m_data.m_long.capacitym1;
v7 = atof((const char *)v10);
}
a1->m_strength = v7;
v11 = 0.0;
v12 = 0.0;
if ( begin[191] )
{
v13 = a2->__begin_ + 191;
if ( a2->__begin_[191].m_data.m_short.shortStorage.__elems_[22] < 0 )
v13 = (std::__vector_base::pointer)v13->m_data.m_long.capacitym1;
v12 = atof((const char *)v13);
}
a1->m_outer = v12;
if ( begin[179] )
{
v14 = a2->__begin_ + 179;
if ( a2->__begin_[179].m_data.m_short.shortStorage.__elems_[22] < 0 )
v14 = (std::__vector_base::pointer)v14->m_data.m_long.capacitym1;
v11 = atof((const char *)v14);
}
a1->m_waveWidth = v11;
v15 = 0.0;
v16 = 0.0;
if ( begin[180] )
{
v17 = a2->__begin_ + 180;
if ( a2->__begin_[180].m_data.m_short.shortStorage.__elems_[22] < 0 )
v17 = (std::__vector_base::pointer)v17->m_data.m_long.capacitym1;
v16 = atof((const char *)v17);
}
a1->m_targetX = v16;
if ( begin[189] )
{
v18 = a2->__begin_ + 189;
if ( a2->__begin_[189].m_data.m_short.shortStorage.__elems_[22] < 0 )
v18 = (std::__vector_base::pointer)v18->m_data.m_long.capacitym1;
v15 = atof((const char *)v18);
}
a1->m_targetY = v15;
v19 = 0.0;
v20 = 0.0;
if ( begin[177] )
{
v21 = a2->__begin_ + 177;
if ( a2->__begin_[177].m_data.m_short.shortStorage.__elems_[22] < 0 )
v21 = (std::__vector_base::pointer)v21->m_data.m_long.capacitym1;
v20 = atof((const char *)v21);
}
a1->m_timeOff = v20;
if ( begin[290] )
{
v22 = a2->__begin_ + 290;
if ( a2->__begin_[290].m_data.m_short.shortStorage.__elems_[22] < 0 )
v22 = (std::__vector_base::pointer)v22->m_data.m_long.capacitym1;
v19 = atof((const char *)v22);
}
a1->m_screenOffsetX = v19;
v23 = 0.0;
v24 = 0.0;
if ( begin[291] )
{
v25 = a2->__begin_ + 291;
if ( a2->__begin_[291].m_data.m_short.shortStorage.__elems_[22] < 0 )
v25 = (std::__vector_base::pointer)v25->m_data.m_long.capacitym1;
v24 = atof((const char *)v25);
}
a1->m_screenOffsetY = v24;
if ( begin[181] )
{
v26 = a2->__begin_ + 181;
if ( a2->__begin_[181].m_data.m_short.shortStorage.__elems_[22] < 0 )
v26 = (std::__vector_base::pointer)v26->m_data.m_long.capacitym1;
v23 = atof((const char *)v26);
}
a1->m_fadeIn = v23;
v27 = begin[182];
if ( v27 )
{
v28 = a2->__begin_;
v29 = a2->__begin_ + 182;
v30 = (const char *)v29;
if ( a2->__begin_[182].m_data.m_short.shortStorage.__elems_[22] < 0 )
v30 = (const char *)v29->m_data.m_long.capacitym1;
v31 = atof(v30);
a1->m_fadeOut = v31;
if ( v28[182].m_data.m_short.shortStorage.__elems_[22] < 0 )
v29 = (std::__vector_base::pointer)v29->m_data.m_long.capacitym1;
LOBYTE(v27) = atof((const char *)v29) != 0.0;
}
else
{
a1->m_fadeOut = 0.0;
}
a1->m_invert = (char)v27;
v32 = 0.0;
v33 = 0.0;
if ( begin[183] )
{
v34 = a2->__begin_ + 183;
if ( a2->__begin_[183].m_data.m_short.shortStorage.__elems_[22] < 0 )
v34 = (std::__vector_base::pointer)v34->m_data.m_long.capacitym1;
v33 = atof((const char *)v34);
}
a1->m_inner = v33;
if ( begin[512] )
{
v35 = a2->__begin_ + 512;
if ( a2->__begin_[512].m_data.m_short.shortStorage.__elems_[22] < 0 )
v35 = (std::__vector_base::pointer)v35->m_data.m_long.capacitym1;
v32 = atof((const char *)v35);
}
a1->m_maxSize = v32;
v36 = begin[184];
if ( v36 )
{
v37 = a2->__begin_ + 184;
if ( a2->__begin_[184].m_data.m_short.shortStorage.__elems_[22] < 0 )
v37 = (std::__vector_base::pointer)v37->m_data.m_long.capacitym1;
LOBYTE(v36) = atoi((const char *)v37) != 0;
}
a1->m_invert = (char)v36;
v38 = begin[185];
if ( v38 )
{
v39 = a2->__begin_ + 185;
if ( a2->__begin_[185].m_data.m_short.shortStorage.__elems_[22] < 0 )
v39 = (std::__vector_base::pointer)v39->m_data.m_long.capacitym1;
LOBYTE(v38) = atoi((const char *)v39) != 0;
}
a1->m_flip = (char)v38;
v40 = begin[186];
if ( v40 )
{
v41 = a2->__begin_ + 186;
if ( a2->__begin_[186].m_data.m_short.shortStorage.__elems_[22] < 0 )
v41 = (std::__vector_base::pointer)v41->m_data.m_long.capacitym1;
LOBYTE(v40) = atoi((const char *)v41) != 0;
}
a1->m_rotate = (char)v40;
v42 = begin[187];
if ( v42 )
{
v43 = a2->__begin_ + 187;
if ( a2->__begin_[187].m_data.m_short.shortStorage.__elems_[22] < 0 )
v43 = (std::__vector_base::pointer)v43->m_data.m_long.capacitym1;
LOBYTE(v42) = atoi((const char *)v43) != 0;
}
a1->m_dual = (char)v42;
v44 = begin[188];
if ( v44 )
{
v45 = a2->__begin_ + 188;
if ( a2->__begin_[188].m_data.m_short.shortStorage.__elems_[22] < 0 )
v45 = (std::__vector_base::pointer)v45->m_data.m_long.capacitym1;
LOBYTE(v44) = atoi((const char *)v45) != 0;
}
a1->m_useX = (char)v44;
v46 = begin[190];
if ( v46 )
{
v47 = a2->__begin_ + 190;
if ( a2->__begin_[190].m_data.m_short.shortStorage.__elems_[22] < 0 )
v47 = (std::__vector_base::pointer)v47->m_data.m_long.capacitym1;
LOBYTE(v46) = atoi((const char *)v47) != 0;
}
a1->m_useY = (char)v46;
v48 = begin[194];
if ( v48 )
{
v49 = a2->__begin_ + 194;
if ( a2->__begin_[194].m_data.m_short.shortStorage.__elems_[22] < 0 )
v49 = (std::__vector_base::pointer)v49->m_data.m_long.capacitym1;
LOBYTE(v48) = atoi((const char *)v49) != 0;
}
a1->m_snapGrid = (char)v48;
v50 = begin[515];
if ( v50 )
{
v51 = a2->__begin_ + 515;
if ( a2->__begin_[515].m_data.m_short.shortStorage.__elems_[22] < 0 )
v51 = (std::__vector_base::pointer)v51->m_data.m_long.capacitym1;
LOBYTE(v50) = atoi((const char *)v51) != 0;
}
a1->m_hardEdges = (char)v50;
v52 = begin[192];
if ( v52 )
{
v53 = a2->__begin_ + 192;
if ( a2->__begin_[192].m_data.m_short.shortStorage.__elems_[22] < 0 )
v53 = (std::__vector_base::pointer)v53->m_data.m_long.capacitym1;
LOBYTE(v52) = atoi((const char *)v53) != 0;
}
a1->m_disableAll = (char)v52;
v54 = begin[513];
if ( v54 )
{
v55 = a2->__begin_ + 513;
if ( a2->__begin_[513].m_data.m_short.shortStorage.__elems_[22] < 0 )
v55 = (std::__vector_base::pointer)v55->m_data.m_long.capacitym1;
LOBYTE(v54) = atoi((const char *)v55) != 0;
}
a1->m_animate = (char)v54;
v56 = begin[514];
if ( v56 )
{
v57 = a2->__begin_ + 514;
if ( a2->__begin_[514].m_data.m_short.shortStorage.__elems_[22] < 0 )
v57 = (std::__vector_base::pointer)v57->m_data.m_long.capacitym1;
LOBYTE(v56) = atoi((const char *)v57) != 0;
}
a1->m_relative = (char)v56;
v58 = begin[531];
if ( v58 )
{
v59 = a2->__begin_ + 531;
if ( a2->__begin_[531].m_data.m_short.shortStorage.__elems_[22] < 0 )
v59 = (std::__vector_base::pointer)v59->m_data.m_long.capacitym1;
LOBYTE(v58) = atoi((const char *)v59) != 0;
}
a1->m_editorDisabled = (char)v58;
if ( begin[10] )
{
v60 = a2->__begin_ + 10;
if ( a2->__begin_[10].m_data.m_short.shortStorage.__elems_[22] < 0 )
v60 = (std::__vector_base::pointer)v60->m_data.m_long.capacitym1;
v61 = atof((const char *)v60);
}
else
{
v61 = 0.0;
}
a1->m_duration = v61;
if ( begin[30] )
{
v62 = a2->__begin_ + 30;
if ( a2->__begin_[30].m_data.m_short.shortStorage.__elems_[22] < 0 )
v62 = (std::__vector_base::pointer)v62->m_data.m_long.capacitym1;
v63 = atoi((const char *)v62);
}
else
{
v63 = 0;
}
a1->m_easingType = v63;
if ( begin[85] )
{
v64 = a2->__begin_ + 85;
if ( a2->__begin_[85].m_data.m_short.shortStorage.__elems_[22] < 0 )
v64 = (std::__vector_base::pointer)v64->m_data.m_long.capacitym1;
v65 = atof((const char *)v64);
}
else
{
v65 = 0.0;
}
a1->m_easingRate = v65;
if ( begin[51] )
{
v66 = a2->__begin_ + 51;
if ( a2->__begin_[51].m_data.m_short.shortStorage.__elems_[22] < 0 )
v66 = (std::__vector_base::pointer)v66->m_data.m_long.capacitym1;
v67 = atoi((const char *)v66);
}
else
{
v67 = 0;
}
v68 = v67 & ~(v67 >> 31);
if ( v68 >= 9999 )
v68 = 9999;
a1->m_targetGroupID = v68;
if ( begin[71] )
{
v69 = a2->__begin_ + 71;
if ( a2->__begin_[71].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;
}
v71 = v70 & ~(v70 >> 31);
if ( v71 >= 9999 )
v71 = 9999;
a1->m_centerGroupID = v71;
v72 = begin[138];
if ( v72 )
{
v73 = a2->__begin_ + 138;
if ( a2->__begin_[138].m_data.m_short.shortStorage.__elems_[22] < 0 )
v73 = (std::__vector_base::pointer)v73->m_data.m_long.capacitym1;
LOBYTE(v72) = atoi((const char *)v73) != 0;
}
a1->m_targetPlayer1 = (char)v72;
v74 = begin[200];
if ( v74 )
{
v75 = a2->__begin_ + 200;
if ( a2->__begin_[200].m_data.m_short.shortStorage.__elems_[22] < 0 )
v75 = (std::__vector_base::pointer)v75->m_data.m_long.capacitym1;
LOBYTE(v74) = atoi((const char *)v75) != 0;
}
a1->m_targetPlayer2 = (char)v74;
v76 = begin[201];
if ( v76 )
{
v77 = a2->__begin_ + 201;
if ( a2->__begin_[201].m_data.m_short.shortStorage.__elems_[22] < 0 )
v77 = (std::__vector_base::pointer)v77->m_data.m_long.capacitym1;
LOBYTE(v76) = atoi((const char *)v77) != 0;
}
a1->m_followCPP = (char)v76;
if ( begin[196] )
{
v78 = a2->__begin_ + 196;
if ( a2->__begin_[196].m_data.m_short.shortStorage.__elems_[22] < 0 )
v78 = (std::__vector_base::pointer)v78->m_data.m_long.capacitym1;
v79 = atoi((const char *)v78);
}
else
{
v79 = 0;
}
a1->m_zLayerMin = v79;
if ( begin[197] )
{
v80 = a2->__begin_ + 197;
if ( a2->__begin_[197].m_data.m_short.shortStorage.__elems_[22] < 0 )
v80 = (std::__vector_base::pointer)v80->m_data.m_long.capacitym1;
v81 = atoi((const char *)v80);
}
else
{
v81 = 0;
}
a1->m_zLayerMax = v81;
}