//
// GradientTriggerObject::customObjectSetup from 0x1404998b0 to 0x140499b37 (647 bytes)
//
// 2 xrefs:
// > ??> @ 0x14061a780
// > ??> @ 0x1406dc380
//
// 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 GradientTriggerObject::customObjectSetup(
GradientTriggerObject *a1,
std::vector *a2,
std::vector *a3)
{
double v6; // xmm6_8
double v7; // xmm0_8
std::_Vector_val>::pointer m_bigStorage; // rcx
int v9; // edi
int v10; // eax
std::_Vector_val>::pointer v11; // rcx
int v12; // eax
std::_Vector_val>::pointer v13; // rcx
int v14; // eax
std::_Vector_val>::pointer v15; // rcx
int v16; // eax
std::_Vector_val>::pointer v17; // rcx
int v18; // eax
std::_Vector_val>::pointer v19; // rcx
int v20; // eax
std::_Vector_val>::pointer v21; // rcx
int v22; // eax
std::_Vector_val>::pointer v23; // rcx
int v24; // eax
std::_Vector_val>::pointer v25; // rcx
std::_Vector_val>::pointer v26; // rcx
std::_Vector_val>::pointer v27; // rcx
bool v28; // cc
float v29; // xmm0_4
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 0.0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 174) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 174;
if ( a2->_Mypair._Myval2._Myfirst[174].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 = 0;
a1->m_blendingMode = (int)v7;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 202) )
{
v11 = a2->_Mypair._Myval2._Myfirst + 202;
if ( a2->_Mypair._Myval2._Myfirst[202].m_data.m_capacity > 0xF )
v11 = (std::_Vector_val>::pointer)v11->m_data.m_bigStorage;
v10 = atoi(v11->m_data.m_smallStorage._Elems);
}
else
{
v10 = 0;
}
a1->m_blendingLayer = v10;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 203) )
{
v13 = a2->_Mypair._Myval2._Myfirst + 203;
if ( a2->_Mypair._Myval2._Myfirst[203].m_data.m_capacity > 0xF )
v13 = (std::_Vector_val>::pointer)v13->m_data.m_bigStorage;
v12 = atoi(v13->m_data.m_smallStorage._Elems);
}
else
{
v12 = 0;
}
a1->m_upBottomLeftID = v12;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 204) )
{
v15 = a2->_Mypair._Myval2._Myfirst + 204;
if ( a2->_Mypair._Myval2._Myfirst[204].m_data.m_capacity > 0xF )
v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage;
v14 = atoi(v15->m_data.m_smallStorage._Elems);
}
else
{
v14 = 0;
}
a1->m_downBottomRightID = v14;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 205) )
{
v17 = a2->_Mypair._Myval2._Myfirst + 205;
if ( a2->_Mypair._Myval2._Myfirst[205].m_data.m_capacity > 0xF )
v17 = (std::_Vector_val>::pointer)v17->m_data.m_bigStorage;
v16 = atoi(v17->m_data.m_smallStorage._Elems);
}
else
{
v16 = 0;
}
a1->m_leftTopLeftID = v16;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 206) )
{
v19 = a2->_Mypair._Myval2._Myfirst + 206;
if ( a2->_Mypair._Myval2._Myfirst[206].m_data.m_capacity > 0xF )
v19 = (std::_Vector_val>::pointer)v19->m_data.m_bigStorage;
v18 = atoi(v19->m_data.m_smallStorage._Elems);
}
else
{
v18 = 0;
}
a1->m_rightTopRightID = v18;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 207) )
{
v21 = a2->_Mypair._Myval2._Myfirst + 207;
if ( a2->_Mypair._Myval2._Myfirst[207].m_data.m_capacity > 0xF )
v21 = (std::_Vector_val>::pointer)v21->m_data.m_bigStorage;
v20 = atoi(v21->m_data.m_smallStorage._Elems);
}
else
{
v20 = 0;
}
a1->m_vertexMode = v20 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 208) )
{
v23 = a2->_Mypair._Myval2._Myfirst + 208;
if ( a2->_Mypair._Myval2._Myfirst[208].m_data.m_capacity > 0xF )
v23 = (std::_Vector_val>::pointer)v23->m_data.m_bigStorage;
v22 = atoi(v23->m_data.m_smallStorage._Elems);
}
else
{
v22 = 0;
}
a1->m_disable = v22 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 508) )
{
v25 = a2->_Mypair._Myval2._Myfirst + 508;
if ( a2->_Mypair._Myval2._Myfirst[508].m_data.m_capacity > 0xF )
v25 = (std::_Vector_val>::pointer)v25->m_data.m_bigStorage;
v24 = atoi(v25->m_data.m_smallStorage._Elems);
}
else
{
v24 = 0;
}
a1->m_disableAll = v24 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 209) )
{
v26 = a2->_Mypair._Myval2._Myfirst + 209;
if ( a2->_Mypair._Myval2._Myfirst[209].m_data.m_capacity > 0xF )
v26 = (std::_Vector_val>::pointer)v26->m_data.m_bigStorage;
v9 = atoi(v26->m_data.m_smallStorage._Elems);
}
a1->m_gradientID = v9;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 456) )
{
v27 = a2->_Mypair._Myval2._Myfirst + 456;
if ( a2->_Mypair._Myval2._Myfirst[456].m_data.m_capacity > 0xF )
v27 = (std::_Vector_val>::pointer)v27->m_data.m_bigStorage;
v6 = atof(v27->m_data.m_smallStorage._Elems);
}
v28 = a1->m_blendingLayer <= 0;
v29 = v6;
a1->m_previewOpacity = v29;
if ( v28 )
a1->m_blendingLayer = 1;
}