//
// EffectGameObject::hasSpawnTargetID from 0x87abc4 to 0x87ad0c (328 bytes)
//
// 1 xrefs:
// > ??> @ 0xac6a8
//
// This function is hookable on this platform (idp: arm, 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:55:52 +0000
//
__int64 __fastcall EffectGameObject::hasSpawnTargetID(EffectGameObject *this, int a2)
{
int v2; // w2
unsigned int v3; // w2
if ( a2 <= 0 )
return 0;
v2 = *((_DWORD *)this + 257);
if ( v2 != 1912 )
{
if ( v2 <= 1912 )
{
if ( v2 > 1595 )
{
if ( v2 == 1811 )
goto LABEL_17;
if ( v2 != 1815 )
{
if ( v2 == 1611 )
goto LABEL_17;
goto LABEL_23;
}
return *((_DWORD *)this + 366) == a2;
}
if ( v2 < 1594 && v2 != 1268 && v2 != 1329 && v2 != 142 )
goto LABEL_23;
return *((_DWORD *)this + 366) == a2;
}
if ( v2 == 3607 )
return ChanceTriggerGameObject::containsTargetID(this, a2);
if ( v2 <= 3607 )
{
if ( v2 != 2068 )
{
if ( v2 != 3604 )
{
if ( v2 == 2063 )
{
if ( *((_DWORD *)this + 366) != a2 && *((_DWORD *)this + 461) != a2 )
return a2 == *((_DWORD *)this + 462);
return 1;
}
goto LABEL_23;
}
return *((_DWORD *)this + 366) == a2;
}
return ChanceTriggerGameObject::containsTargetID(this, a2);
}
if ( v2 != 3620 )
{
if ( v2 > 3620 )
{
if ( v2 == 3640 || v2 == 3643 )
return *((_DWORD *)this + 366) == a2;
LABEL_23:
v3 = 0;
if ( *((_DWORD *)this + 230) != 30 )
return v3;
LABEL_17:
v3 = *((unsigned __int8 *)this + 1637);
if ( *((_BYTE *)this + 1637) )
return a2 == *((_DWORD *)this + 366);
return v3;
}
if ( v2 != 3609 )
goto LABEL_23;
return *((_DWORD *)this + 366) == a2;
}
}
if ( *((_DWORD *)this + 366) == a2 )
return 1;
return a2 == *((_DWORD *)this + 367);
}