//
// TriggerControlGameObject::customObjectSetup from 0x1001d1d30 to 0x1001d1e15 (229 bytes)
//
// 1 xrefs:
// > ??> @ 0x100adb988
//
// 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 12:26:22 +0000
//
__int64 __fastcall TriggerControlGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 *a3, __m128 a4)
{
_QWORD *v6; // r15
bool v7; // r12
int v8; // eax
__int64 v9; // rdi
const char *v10; // rdi
int v11; // ecx
__int64 v12; // rdi
const char *v13; // rdi
__int64 v14; // rdi
const char *v15; // rdi
int v16; // eax
EffectGameObject::customObjectSetup(a1, a2, a3, a4);
v6 = (_QWORD *)*a3;
v7 = 0;
v8 = 0;
if ( v6[51] )
{
v9 = *a2;
if ( (*(_BYTE *)(*a2 + 1224) & 1) != 0 )
v10 = *(const char **)(v9 + 1240);
else
v10 = (const char *)(v9 + 1225);
v8 = atoi(v10);
}
if ( v8 <= 0 )
v8 = 0;
v11 = 9999;
if ( v8 < 9999 )
v11 = v8;
*(_DWORD *)(a1 + 1464) = v11;
if ( v6[535] )
{
v12 = *a2;
if ( (*(_BYTE *)(*a2 + 12840) & 1) != 0 )
v13 = *(const char **)(v12 + 12856);
else
v13 = (const char *)(v12 + 12841);
v7 = atoi(v13) != 0;
}
*(_BYTE *)(a1 + 1676) = v7;
if ( v6[580] )
{
v14 = *a2;
if ( (*(_BYTE *)(*a2 + 13920) & 1) != 0 )
v15 = *(const char **)(v14 + 13936);
else
v15 = (const char *)(v14 + 13921);
v16 = atoi(v15);
}
else
{
v16 = 0;
}
*(_DWORD *)(a1 + 1864) = v16;
return TriggerControlGameObject::updateTriggerControlFrame(a1);
}