//
// TriggerControlGameObject::customObjectSetup from 0x140664220 to 0x14066430a (234 bytes)
//
// 2 xrefs:
// > ??> @ 0x140827d40
// > ??> @ 0x140931c88
//
// 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:49 +0000
//
__int64 __fastcall TriggerControlGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // ebx
int v7; // eax
const char *v8; // rcx
int v9; // ecx
int v10; // eax
const char *v11; // rcx
const char *v12; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v6 = 0;
v7 = 0;
LABEL_8:
v9 = v7;
goto LABEL_9;
}
v8 = (const char *)(*(_QWORD *)a2 + 1632LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 1656LL) > 0xFu )
v8 = *(const char **)v8;
v7 = atoi(v8);
v6 = 0;
v9 = 9999;
if ( v7 < 0 )
v7 = 0;
if ( v7 <= 9999 )
goto LABEL_8;
LABEL_9:
*(_DWORD *)(a1 + 1480) = v9;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4280LL) )
{
v11 = (const char *)(*(_QWORD *)a2 + 17120LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 17144LL) > 0xFu )
v11 = *(const char **)v11;
v10 = atoi(v11);
}
else
{
v10 = 0;
}
*(_BYTE *)(a1 + 1692) = v10 != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4640LL) )
{
v12 = (const char *)(*(_QWORD *)a2 + 18560LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 18584LL) > 0xFu )
v12 = *(const char **)v12;
v6 = atoi(v12);
}
*(_DWORD *)(a1 + 1888) = v6;
return TriggerControlGameObject::updateTriggerControlFrame(a1);
}