//
// EndTriggerGameObject::customObjectSetup from 0x14065dff0 to 0x14065e154 (356 bytes)
//
// 2 xrefs:
// > ??> @ 0x14082a298
// > ??> @ 0x140931a48
//
// 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:47 +0000
//
bool __fastcall EndTriggerGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // ebp
int v7; // ebx
int v8; // eax
const char *v9; // rcx
int v10; // eax
const char *v11; // rcx
int v12; // eax
const char *v13; // rcx
int v14; // eax
const char *v15; // rcx
const char *v16; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 9999;
if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v9 = (const char *)(*(_QWORD *)a2 + 1632LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 1656LL) > 0xFu )
v9 = *(const char **)v9;
v8 = atoi(v9);
v7 = 0;
if ( v8 < 0 )
v8 = 0;
if ( v8 > 9999 )
v8 = 9999;
}
else
{
v7 = 0;
v8 = 0;
}
*(_DWORD *)(a1 + 1480) = v8;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 568LL) )
{
v10 = 0;
LABEL_16:
v6 = v10;
goto LABEL_17;
}
v11 = (const char *)(*(_QWORD *)a2 + 2272LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 2296LL) > 0xFu )
v11 = *(const char **)v11;
v10 = atoi(v11);
if ( v10 < 0 )
v10 = 0;
if ( v10 <= 9999 )
goto LABEL_16;
LABEL_17:
*(_DWORD *)(a1 + 1484) = v6;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3680LL) )
{
v13 = (const char *)(*(_QWORD *)a2 + 14720LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 14744LL) > 0xFu )
v13 = *(const char **)v13;
v12 = atoi(v13);
}
else
{
v12 = 0;
}
*(_BYTE *)(a1 + 1856) = v12 != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3688LL) )
{
v15 = (const char *)(*(_QWORD *)a2 + 14752LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 14776LL) > 0xFu )
v15 = *(const char **)v15;
v14 = atoi(v15);
}
else
{
v14 = 0;
}
*(_BYTE *)(a1 + 1857) = v14 != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3896LL) )
{
v16 = (const char *)(*(_QWORD *)a2 + 15584LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 15608LL) > 0xFu )
v16 = *(const char **)v16;
v7 = atoi(v16);
}
*(_BYTE *)(a1 + 1858) = v7 != 0;
return v7 != 0;
}