//
// EffectGameObject::canSpawnTriggers from 0x10019b900 to 0x10019b9a8 (168 bytes)
//
// 4 xrefs:
// > sub_1000C9520 @ 0x1000c95b1
// > sub_1000C9520 @ 0x1000c9c60
// > sub_1000CBA70 @ 0x1000cbc9a
// > sub_1000CBA70 @ 0x1000cc610
//
// 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:25:57 +0000
//
char __fastcall EffectGameObject::canSpawnTriggers(__int64 a1)
{
int v1; // ecx
char result; // al
unsigned int v3; // ecx
int v4; // edx
unsigned __int64 v5; // rdx
__int64 v6; // rsi
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 > 2062 )
{
v5 = (unsigned int)(v1 - 3604);
if ( (unsigned int)v5 > 0x27 || (v6 = 0x9000010029LL, !_bittest64(&v6, v5)) )
{
if ( v1 != 2063 && v1 != 2068 )
return *(_DWORD *)(a1 + 920) == 30;
}
}
else if ( v1 <= 1593 )
{
if ( v1 != 142 && v1 != 1268 && v1 != 1329 )
return *(_DWORD *)(a1 + 920) == 30;
}
else if ( v1 > 1810 )
{
if ( v1 != 1811 && v1 != 1815 && v1 != 1912 )
return *(_DWORD *)(a1 + 920) == 30;
}
else
{
v3 = v1 - 1594;
if ( v3 > 0x11 )
return *(_DWORD *)(a1 + 920) == 30;
v4 = 131075;
if ( !_bittest(&v4, v3) )
return *(_DWORD *)(a1 + 920) == 30;
}
return result;
}