//
// ShaderGameObject::customObjectSetup from 0x14049adc0 to 0x14049b5e3 (2083 bytes)
//
// 2 xrefs:
// > ??> @ 0x140616ce0
// > ??> @ 0x1406dc3a4
//
// 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 ShaderGameObject::customObjectSetup(ShaderGameObject *a1, std::vector *a2, std::vector *a3)
{
double v6; // xmm6_8
double v7; // xmm0_8
std::_Vector_val>::pointer m_bigStorage; // rcx
float v9; // xmm0_4
double v10; // xmm0_8
std::_Vector_val>::pointer v11; // rcx
float v12; // xmm0_4
double v13; // xmm0_8
std::_Vector_val>::pointer v14; // rcx
float v15; // xmm0_4
double v16; // xmm0_8
std::_Vector_val>::pointer v17; // rcx
float v18; // xmm0_4
double v19; // xmm0_8
std::_Vector_val>::pointer v20; // rcx
float v21; // xmm0_4
double v22; // xmm0_8
std::_Vector_val>::pointer v23; // rcx
float v24; // xmm0_4
double v25; // xmm0_8
std::_Vector_val>::pointer v26; // rcx
float v27; // xmm0_4
double v28; // xmm0_8
std::_Vector_val>::pointer v29; // rcx
float v30; // xmm0_4
double v31; // xmm0_8
std::_Vector_val>::pointer v32; // rcx
float v33; // xmm0_4
double v34; // xmm0_8
std::_Vector_val>::pointer v35; // rcx
float v36; // xmm0_4
double v37; // xmm0_8
std::_Vector_val>::pointer v38; // rcx
float v39; // xmm0_4
std::_Vector_val>::pointer v40; // rcx
bool v41; // al
bool *p_m_invert; // r14
double v43; // xmm0_8
std::_Vector_val>::pointer v44; // rcx
float v45; // xmm0_4
bool *v46; // rbp
double v47; // xmm0_8
std::_Vector_val>::pointer v48; // rcx
float v49; // xmm0_4
int v50; // eax
std::_Vector_val>::pointer v51; // rcx
int v52; // eax
std::_Vector_val>::pointer v53; // rcx
int v54; // eax
std::_Vector_val>::pointer v55; // rcx
int v56; // eax
std::_Vector_val>::pointer v57; // rcx
int v58; // eax
std::_Vector_val>::pointer v59; // rcx
int v60; // eax
std::_Vector_val>::pointer v61; // rcx
int v62; // eax
std::_Vector_val>::pointer v63; // rcx
int v64; // eax
std::_Vector_val>::pointer v65; // rcx
int v66; // eax
std::_Vector_val>::pointer v67; // rcx
int v68; // eax
std::_Vector_val>::pointer v69; // rcx
int v70; // eax
std::_Vector_val>::pointer v71; // rcx
int v72; // eax
std::_Vector_val>::pointer v73; // rcx
double v74; // xmm0_8
std::_Vector_val>::pointer v75; // rcx
float v76; // xmm0_4
EasingType v77; // eax
std::_Vector_val>::pointer v78; // rcx
std::_Vector_val>::pointer v79; // rcx
int v80; // ebp
float v81; // xmm0_4
int v82; // eax
std::_Vector_val>::pointer v83; // rcx
int v84; // eax
std::_Vector_val>::pointer v85; // rcx
int v86; // eax
std::_Vector_val>::pointer v87; // rcx
int v88; // eax
std::_Vector_val>::pointer v89; // rcx
int v90; // eax
std::_Vector_val>::pointer v91; // rcx
int v92; // eax
std::_Vector_val>::pointer v93; // rcx
std::_Vector_val>::pointer v94; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 0.0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 175) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 175;
if ( a2->_Mypair._Myval2._Myfirst[175].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v7 = atof(m_bigStorage->m_data.m_smallStorage._Elems);
}
else
{
v7 = 0.0;
}
v9 = v7;
a1->m_speed = v9;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 176) )
{
v11 = a2->_Mypair._Myval2._Myfirst + 176;
if ( a2->_Mypair._Myval2._Myfirst[176].m_data.m_capacity > 0xF )
v11 = (std::_Vector_val>::pointer)v11->m_data.m_bigStorage;
v10 = atof(v11->m_data.m_smallStorage._Elems);
}
else
{
v10 = 0.0;
}
v12 = v10;
a1->m_strength = v12;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 191) )
{
v14 = a2->_Mypair._Myval2._Myfirst + 191;
if ( a2->_Mypair._Myval2._Myfirst[191].m_data.m_capacity > 0xF )
v14 = (std::_Vector_val>::pointer)v14->m_data.m_bigStorage;
v13 = atof(v14->m_data.m_smallStorage._Elems);
}
else
{
v13 = 0.0;
}
v15 = v13;
a1->m_outer = v15;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 179) )
{
v17 = a2->_Mypair._Myval2._Myfirst + 179;
if ( a2->_Mypair._Myval2._Myfirst[179].m_data.m_capacity > 0xF )
v17 = (std::_Vector_val>::pointer)v17->m_data.m_bigStorage;
v16 = atof(v17->m_data.m_smallStorage._Elems);
}
else
{
v16 = 0.0;
}
v18 = v16;
a1->m_waveWidth = v18;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 180) )
{
v20 = a2->_Mypair._Myval2._Myfirst + 180;
if ( a2->_Mypair._Myval2._Myfirst[180].m_data.m_capacity > 0xF )
v20 = (std::_Vector_val>::pointer)v20->m_data.m_bigStorage;
v19 = atof(v20->m_data.m_smallStorage._Elems);
}
else
{
v19 = 0.0;
}
v21 = v19;
a1->m_targetX = v21;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 189) )
{
v23 = a2->_Mypair._Myval2._Myfirst + 189;
if ( a2->_Mypair._Myval2._Myfirst[189].m_data.m_capacity > 0xF )
v23 = (std::_Vector_val>::pointer)v23->m_data.m_bigStorage;
v22 = atof(v23->m_data.m_smallStorage._Elems);
}
else
{
v22 = 0.0;
}
v24 = v22;
a1->m_targetY = v24;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 177) )
{
v26 = a2->_Mypair._Myval2._Myfirst + 177;
if ( a2->_Mypair._Myval2._Myfirst[177].m_data.m_capacity > 0xF )
v26 = (std::_Vector_val>::pointer)v26->m_data.m_bigStorage;
v25 = atof(v26->m_data.m_smallStorage._Elems);
}
else
{
v25 = 0.0;
}
v27 = v25;
a1->m_timeOff = v27;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 290) )
{
v29 = a2->_Mypair._Myval2._Myfirst + 290;
if ( a2->_Mypair._Myval2._Myfirst[290].m_data.m_capacity > 0xF )
v29 = (std::_Vector_val>::pointer)v29->m_data.m_bigStorage;
v28 = atof(v29->m_data.m_smallStorage._Elems);
}
else
{
v28 = 0.0;
}
v30 = v28;
a1->m_screenOffsetX = v30;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 291) )
{
v32 = a2->_Mypair._Myval2._Myfirst + 291;
if ( a2->_Mypair._Myval2._Myfirst[291].m_data.m_capacity > 0xF )
v32 = (std::_Vector_val>::pointer)v32->m_data.m_bigStorage;
v31 = atof(v32->m_data.m_smallStorage._Elems);
}
else
{
v31 = 0.0;
}
v33 = v31;
a1->m_screenOffsetY = v33;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 181) )
{
v35 = a2->_Mypair._Myval2._Myfirst + 181;
if ( a2->_Mypair._Myval2._Myfirst[181].m_data.m_capacity > 0xF )
v35 = (std::_Vector_val>::pointer)v35->m_data.m_bigStorage;
v34 = atof(v35->m_data.m_smallStorage._Elems);
}
else
{
v34 = 0.0;
}
v36 = v34;
a1->m_fadeIn = v36;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 182) )
{
v38 = a2->_Mypair._Myval2._Myfirst + 182;
if ( a2->_Mypair._Myval2._Myfirst[182].m_data.m_capacity > 0xF )
v38 = (std::_Vector_val>::pointer)v38->m_data.m_bigStorage;
v37 = atof(v38->m_data.m_smallStorage._Elems);
}
else
{
v37 = 0.0;
}
v39 = v37;
a1->m_fadeOut = v39;
if ( !*((_QWORD *)a3->_Mypair._Myval2._Myfirst + 182) )
goto LABEL_61;
v40 = a2->_Mypair._Myval2._Myfirst + 182;
if ( a2->_Mypair._Myval2._Myfirst[182].m_data.m_capacity > 0xF )
v40 = (std::_Vector_val>::pointer)v40->m_data.m_bigStorage;
if ( atof(v40->m_data.m_smallStorage._Elems) == 0.0 )
LABEL_61:
v41 = 0;
else
v41 = 1;
p_m_invert = &a1->m_invert;
a1->m_invert = v41;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 183) )
{
v44 = a2->_Mypair._Myval2._Myfirst + 183;
if ( a2->_Mypair._Myval2._Myfirst[183].m_data.m_capacity > 0xF )
v44 = (std::_Vector_val>::pointer)v44->m_data.m_bigStorage;
v43 = atof(v44->m_data.m_smallStorage._Elems);
p_m_invert = &a1->m_invert;
}
else
{
v43 = 0.0;
}
v45 = v43;
v46 = p_m_invert;
a1->m_inner = v45;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 512) )
{
v48 = a2->_Mypair._Myval2._Myfirst + 512;
if ( a2->_Mypair._Myval2._Myfirst[512].m_data.m_capacity > 0xF )
{
v48 = (std::_Vector_val>::pointer)v48->m_data.m_bigStorage;
v46 = &a1->m_invert;
}
v47 = atof(v48->m_data.m_smallStorage._Elems);
}
else
{
v47 = 0.0;
}
v49 = v47;
a1->m_maxSize = v49;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 184) )
{
v51 = a2->_Mypair._Myval2._Myfirst + 184;
if ( a2->_Mypair._Myval2._Myfirst[184].m_data.m_capacity > 0xF )
v51 = (std::_Vector_val>::pointer)v51->m_data.m_bigStorage;
v50 = atoi(v51->m_data.m_smallStorage._Elems);
p_m_invert = v46;
}
else
{
v50 = 0;
}
*p_m_invert = v50 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 185) )
{
v53 = a2->_Mypair._Myval2._Myfirst + 185;
if ( a2->_Mypair._Myval2._Myfirst[185].m_data.m_capacity > 0xF )
v53 = (std::_Vector_val>::pointer)v53->m_data.m_bigStorage;
v52 = atoi(v53->m_data.m_smallStorage._Elems);
}
else
{
v52 = 0;
}
a1->m_flip = v52 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 186) )
{
v55 = a2->_Mypair._Myval2._Myfirst + 186;
if ( a2->_Mypair._Myval2._Myfirst[186].m_data.m_capacity > 0xF )
v55 = (std::_Vector_val>::pointer)v55->m_data.m_bigStorage;
v54 = atoi(v55->m_data.m_smallStorage._Elems);
}
else
{
v54 = 0;
}
a1->m_rotate = v54 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 187) )
{
v57 = a2->_Mypair._Myval2._Myfirst + 187;
if ( a2->_Mypair._Myval2._Myfirst[187].m_data.m_capacity > 0xF )
v57 = (std::_Vector_val>::pointer)v57->m_data.m_bigStorage;
v56 = atoi(v57->m_data.m_smallStorage._Elems);
}
else
{
v56 = 0;
}
a1->m_dual = v56 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 188) )
{
v59 = a2->_Mypair._Myval2._Myfirst + 188;
if ( a2->_Mypair._Myval2._Myfirst[188].m_data.m_capacity > 0xF )
v59 = (std::_Vector_val>::pointer)v59->m_data.m_bigStorage;
v58 = atoi(v59->m_data.m_smallStorage._Elems);
}
else
{
v58 = 0;
}
a1->m_useX = v58 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 190) )
{
v61 = a2->_Mypair._Myval2._Myfirst + 190;
if ( a2->_Mypair._Myval2._Myfirst[190].m_data.m_capacity > 0xF )
v61 = (std::_Vector_val>::pointer)v61->m_data.m_bigStorage;
v60 = atoi(v61->m_data.m_smallStorage._Elems);
}
else
{
v60 = 0;
}
a1->m_useY = v60 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 194) )
{
v63 = a2->_Mypair._Myval2._Myfirst + 194;
if ( a2->_Mypair._Myval2._Myfirst[194].m_data.m_capacity > 0xF )
v63 = (std::_Vector_val>::pointer)v63->m_data.m_bigStorage;
v62 = atoi(v63->m_data.m_smallStorage._Elems);
}
else
{
v62 = 0;
}
a1->m_snapGrid = v62 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 515) )
{
v65 = a2->_Mypair._Myval2._Myfirst + 515;
if ( a2->_Mypair._Myval2._Myfirst[515].m_data.m_capacity > 0xF )
v65 = (std::_Vector_val>::pointer)v65->m_data.m_bigStorage;
v64 = atoi(v65->m_data.m_smallStorage._Elems);
}
else
{
v64 = 0;
}
a1->m_hardEdges = v64 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 192) )
{
v67 = a2->_Mypair._Myval2._Myfirst + 192;
if ( a2->_Mypair._Myval2._Myfirst[192].m_data.m_capacity > 0xF )
v67 = (std::_Vector_val>::pointer)v67->m_data.m_bigStorage;
v66 = atoi(v67->m_data.m_smallStorage._Elems);
}
else
{
v66 = 0;
}
a1->m_disableAll = v66 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 513) )
{
v69 = a2->_Mypair._Myval2._Myfirst + 513;
if ( a2->_Mypair._Myval2._Myfirst[513].m_data.m_capacity > 0xF )
v69 = (std::_Vector_val>::pointer)v69->m_data.m_bigStorage;
v68 = atoi(v69->m_data.m_smallStorage._Elems);
}
else
{
v68 = 0;
}
a1->m_animate = v68 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 514) )
{
v71 = a2->_Mypair._Myval2._Myfirst + 514;
if ( a2->_Mypair._Myval2._Myfirst[514].m_data.m_capacity > 0xF )
v71 = (std::_Vector_val>::pointer)v71->m_data.m_bigStorage;
v70 = atoi(v71->m_data.m_smallStorage._Elems);
}
else
{
v70 = 0;
}
a1->m_relative = v70 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 531) )
{
v73 = a2->_Mypair._Myval2._Myfirst + 531;
if ( a2->_Mypair._Myval2._Myfirst[531].m_data.m_capacity > 0xF )
v73 = (std::_Vector_val>::pointer)v73->m_data.m_bigStorage;
v72 = atoi(v73->m_data.m_smallStorage._Elems);
}
else
{
v72 = 0;
}
a1->m_editorDisabled = v72 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 10) )
{
v75 = a2->_Mypair._Myval2._Myfirst + 10;
if ( a2->_Mypair._Myval2._Myfirst[10].m_data.m_capacity > 0xF )
v75 = (std::_Vector_val>::pointer)v75->m_data.m_bigStorage;
v74 = atof(v75->m_data.m_smallStorage._Elems);
}
else
{
v74 = 0.0;
}
v76 = v74;
a1->m_duration = v76;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 30) )
{
v78 = a2->_Mypair._Myval2._Myfirst + 30;
if ( a2->_Mypair._Myval2._Myfirst[30].m_data.m_capacity > 0xF )
v78 = (std::_Vector_val>::pointer)v78->m_data.m_bigStorage;
v77 = atoi(v78->m_data.m_smallStorage._Elems);
}
else
{
v77 = 0;
}
a1->m_easingType = v77;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 85) )
{
v79 = a2->_Mypair._Myval2._Myfirst + 85;
if ( a2->_Mypair._Myval2._Myfirst[85].m_data.m_capacity > 0xF )
v79 = (std::_Vector_val>::pointer)v79->m_data.m_bigStorage;
v6 = atof(v79->m_data.m_smallStorage._Elems);
}
v80 = 9999;
v81 = v6;
a1->m_easingRate = v81;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )
{
v83 = a2->_Mypair._Myval2._Myfirst + 51;
if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF )
v83 = (std::_Vector_val>::pointer)v83->m_data.m_bigStorage;
v82 = atoi(v83->m_data.m_smallStorage._Elems);
if ( v82 < 0 )
v82 = 0;
if ( v82 > 9999 )
v82 = 9999;
}
else
{
v82 = 0;
}
a1->m_targetGroupID = v82;
if ( !*((_QWORD *)a3->_Mypair._Myval2._Myfirst + 71) )
{
v84 = 0;
LABEL_161:
v80 = v84;
goto LABEL_162;
}
v85 = a2->_Mypair._Myval2._Myfirst + 71;
if ( a2->_Mypair._Myval2._Myfirst[71].m_data.m_capacity > 0xF )
v85 = (std::_Vector_val>::pointer)v85->m_data.m_bigStorage;
v84 = atoi(v85->m_data.m_smallStorage._Elems);
if ( v84 < 0 )
v84 = 0;
if ( v84 <= 9999 )
goto LABEL_161;
LABEL_162:
a1->m_centerGroupID = v80;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 138) )
{
v87 = a2->_Mypair._Myval2._Myfirst + 138;
if ( a2->_Mypair._Myval2._Myfirst[138].m_data.m_capacity > 0xF )
v87 = (std::_Vector_val>::pointer)v87->m_data.m_bigStorage;
v86 = atoi(v87->m_data.m_smallStorage._Elems);
}
else
{
v86 = 0;
}
a1->m_targetPlayer1 = v86 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 200) )
{
v89 = a2->_Mypair._Myval2._Myfirst + 200;
if ( a2->_Mypair._Myval2._Myfirst[200].m_data.m_capacity > 0xF )
v89 = (std::_Vector_val>::pointer)v89->m_data.m_bigStorage;
v88 = atoi(v89->m_data.m_smallStorage._Elems);
}
else
{
v88 = 0;
}
a1->m_targetPlayer2 = v88 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 201) )
{
v91 = a2->_Mypair._Myval2._Myfirst + 201;
if ( a2->_Mypair._Myval2._Myfirst[201].m_data.m_capacity > 0xF )
v91 = (std::_Vector_val>::pointer)v91->m_data.m_bigStorage;
v90 = atoi(v91->m_data.m_smallStorage._Elems);
}
else
{
v90 = 0;
}
a1->m_followCPP = v90 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 196) )
{
v93 = a2->_Mypair._Myval2._Myfirst + 196;
if ( a2->_Mypair._Myval2._Myfirst[196].m_data.m_capacity > 0xF )
v93 = (std::_Vector_val>::pointer)v93->m_data.m_bigStorage;
v92 = atoi(v93->m_data.m_smallStorage._Elems);
}
else
{
v92 = 0;
}
a1->m_zLayerMin = v92;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 197) )
{
v94 = a2->_Mypair._Myval2._Myfirst + 197;
if ( a2->_Mypair._Myval2._Myfirst[197].m_data.m_capacity > 0xF )
v94 = (std::_Vector_val>::pointer)v94->m_data.m_bigStorage;
a1->m_zLayerMax = atoi(v94->m_data.m_smallStorage._Elems);
}
else
{
a1->m_zLayerMax = 0;
}
}