//
// GradientTriggerObject::customObjectSetup from 0x14063b5e0 to 0x14063b8d1 (753 bytes)
//
// 5 xrefs:
// > ??> @ 0x14082d570
// > ??> @ 0x1408e7eb8
// > ??> @ 0x1408e7ed8
// > ??> @ 0x1408e7ee8
// > ??> @ 0x140930e48
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:32 +0000
//
int __fastcall GradientTriggerObject::customObjectSetup(__int64 a1, __int64 a2, __int64 *a3)
{
float v6; // xmm6_4
float v7; // xmm1_4
const char *v8; // rcx
float v9; // xmm7_4
int v10; // edi
int v11; // eax
const char *v12; // rcx
int v13; // eax
const char *v14; // rcx
int v15; // eax
const char *v16; // rcx
int v17; // eax
const char *v18; // rcx
int v19; // eax
const char *v20; // rcx
int v21; // eax
const char *v22; // rcx
int v23; // eax
const char *v24; // rcx
int v25; // eax
const char *v26; // rcx
const char *v27; // rcx
__int64 v28; // rax
const char *v29; // rcx
float v30; // xmm7_4
bool v31; // cc
EffectGameObject::customObjectSetup();
if ( *(_QWORD *)(*a3 + 1392) )
{
v8 = (const char *)(*(_QWORD *)a2 + 5568LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 5592LL) > 0xFu )
v8 = *(const char **)v8;
v9 = atof(v8);
v6 = 0.0;
if ( isnan(v9) )
v7 = 0.0;
else
v7 = fminf(1000000000.0, fmaxf(-1000000000.0, v9));
}
else
{
v6 = 0.0;
v7 = 0.0;
}
v10 = 0;
*(_DWORD *)(a1 + 1860) = (int)v7;
if ( *(_QWORD *)(*a3 + 1616) )
{
v12 = (const char *)(*(_QWORD *)a2 + 6464LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6488LL) > 0xFu )
v12 = *(const char **)v12;
v11 = atoi(v12);
}
else
{
v11 = 0;
}
*(_DWORD *)(a1 + 1856) = v11;
if ( *(_QWORD *)(*a3 + 1624) )
{
v14 = (const char *)(*(_QWORD *)a2 + 6496LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6520LL) > 0xFu )
v14 = *(const char **)v14;
v13 = atoi(v14);
}
else
{
v13 = 0;
}
*(_DWORD *)(a1 + 1868) = v13;
if ( *(_QWORD *)(*a3 + 1632) )
{
v16 = (const char *)(*(_QWORD *)a2 + 6528LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6552LL) > 0xFu )
v16 = *(const char **)v16;
v15 = atoi(v16);
}
else
{
v15 = 0;
}
*(_DWORD *)(a1 + 1872) = v15;
if ( *(_QWORD *)(*a3 + 1640) )
{
v18 = (const char *)(*(_QWORD *)a2 + 6560LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6584LL) > 0xFu )
v18 = *(const char **)v18;
v17 = atoi(v18);
}
else
{
v17 = 0;
}
*(_DWORD *)(a1 + 1876) = v17;
if ( *(_QWORD *)(*a3 + 1648) )
{
v20 = (const char *)(*(_QWORD *)a2 + 6592LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6616LL) > 0xFu )
v20 = *(const char **)v20;
v19 = atoi(v20);
}
else
{
v19 = 0;
}
*(_DWORD *)(a1 + 1880) = v19;
if ( *(_QWORD *)(*a3 + 1656) )
{
v22 = (const char *)(*(_QWORD *)a2 + 6624LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6648LL) > 0xFu )
v22 = *(const char **)v22;
v21 = atoi(v22);
}
else
{
v21 = 0;
}
*(_BYTE *)(a1 + 1884) = v21 != 0;
if ( *(_QWORD *)(*a3 + 1664) )
{
v24 = (const char *)(*(_QWORD *)a2 + 6656LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6680LL) > 0xFu )
v24 = *(const char **)v24;
v23 = atoi(v24);
}
else
{
v23 = 0;
}
*(_BYTE *)(a1 + 1885) = v23 != 0;
if ( *(_QWORD *)(*a3 + 4064) )
{
v26 = (const char *)(*(_QWORD *)a2 + 16256LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 16280LL) > 0xFu )
v26 = *(const char **)v26;
v25 = atoi(v26);
}
else
{
v25 = 0;
}
*(_BYTE *)(a1 + 1886) = v25 != 0;
if ( *(_QWORD *)(*a3 + 1672) )
{
v27 = (const char *)(*(_QWORD *)a2 + 6688LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 6712LL) > 0xFu )
v27 = *(const char **)v27;
v10 = atoi(v27);
}
*(_DWORD *)(a1 + 1864) = v10;
v28 = *a3;
if ( *(_QWORD *)(*a3 + 3648) )
{
v29 = (const char *)(*(_QWORD *)a2 + 14592LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 14616LL) > 0xFu )
v29 = *(const char **)v29;
v30 = atof(v29);
LODWORD(v28) = isnan(v30);
if ( !(_DWORD)v28 )
v6 = fminf(1000000000.0, fmaxf(-1000000000.0, v30));
}
v31 = *(_DWORD *)(a1 + 1856) <= 0;
*(float *)(a1 + 1888) = v6;
if ( v31 )
*(_DWORD *)(a1 + 1856) = 1;
return v28;
}