//
// EndTriggerGameObject::customObjectSetup from 0x1001bd9d0 to 0x1001bdb53 (387 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ad6028
//
// 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:14 +0000
//
bool __fastcall EndTriggerGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 *a3, __m128 a4)
{
_QWORD *v6; // r12
int v7; // r15d
int v8; // eax
__int64 v9; // rdi
const char *v10; // rdi
int v11; // r13d
__int64 v12; // rdi
const char *v13; // rdi
bool v14; // al
__int64 v15; // rdi
const char *v16; // rdi
__int64 v17; // rdi
const char *v18; // rdi
bool result; // al
__int64 v20; // rdi
const char *v21; // rdi
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 )
v8 = 9999;
*(_DWORD *)(a1 + 1464) = v8;
if ( v6[71] )
{
v12 = *a2;
if ( (*(_BYTE *)(*a2 + 1704) & 1) != 0 )
v13 = *(const char **)(v12 + 1720);
else
v13 = (const char *)(v12 + 1705);
v7 = atoi(v13);
}
v14 = 0;
if ( v7 <= 0 )
v7 = 0;
if ( v7 < 9999 )
v11 = v7;
*(_DWORD *)(a1 + 1468) = v11;
if ( v6[460] )
{
v15 = *a2;
if ( (*(_BYTE *)(*a2 + 11040) & 1) != 0 )
v16 = *(const char **)(v15 + 11056);
else
v16 = (const char *)(v15 + 11041);
v14 = atoi(v16) != 0;
}
*(_BYTE *)(a1 + 1840) = v14;
if ( v6[461] )
{
v17 = *a2;
if ( (*(_BYTE *)(*a2 + 11064) & 1) != 0 )
v18 = *(const char **)(v17 + 11080);
else
v18 = (const char *)(v17 + 11065);
*(_BYTE *)(a1 + 1841) = atoi(v18) != 0;
if ( v6[487] )
goto LABEL_31;
LABEL_28:
result = 0;
goto LABEL_35;
}
*(_BYTE *)(a1 + 1841) = 0;
if ( !v6[487] )
goto LABEL_28;
LABEL_31:
v20 = *a2;
if ( (*(_BYTE *)(*a2 + 11688) & 1) != 0 )
v21 = *(const char **)(v20 + 11704);
else
v21 = (const char *)(v20 + 11689);
result = atoi(v21) != 0;
LABEL_35:
*(_BYTE *)(a1 + 1842) = result;
return result;
}