//
// EffectGameObject::hasSpawnTargetID from 0x4e8d58 to 0x4e8e38 (224 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:07 +0000
//
int __fastcall EffectGameObject::hasSpawnTargetID(EffectGameObject *this, int a2)
{
int v2; // r3
bool v3; // zf
int v4; // r2
int v5; // r3
int v6; // r3
if ( a2 <= 0 )
return 0;
v2 = *((_DWORD *)this + 223);
if ( v2 != 1912 )
{
if ( v2 <= 1912 )
{
if ( v2 > 1595 )
{
if ( v2 == 1811 )
goto LABEL_36;
if ( v2 != 1815 )
{
if ( v2 == 1611 )
goto LABEL_36;
LABEL_35:
if ( *((_DWORD *)this + 196) == 30 )
{
LABEL_36:
v6 = *((unsigned __int8 *)this + 1457);
if ( !*((_BYTE *)this + 1457) )
return v6;
goto LABEL_37;
}
return 0;
}
LABEL_37:
v5 = *((_DWORD *)this + 321);
return v5 == a2;
}
if ( v2 >= 1594 || v2 == 1268 || v2 == 1329 )
goto LABEL_37;
v3 = v2 == 142;
LABEL_25:
if ( !v3 )
goto LABEL_35;
goto LABEL_37;
}
if ( v2 == 3607 )
return ChanceTriggerGameObject::containsTargetID(this, a2);
if ( v2 <= 3607 )
{
if ( v2 != 2068 )
{
if ( v2 == 3604 )
goto LABEL_37;
if ( v2 != 2063 )
goto LABEL_35;
if ( *((_DWORD *)this + 321) != a2 && *((_DWORD *)this + 413) != a2 )
{
v5 = *((_DWORD *)this + 414);
return v5 == a2;
}
return 1;
}
return ChanceTriggerGameObject::containsTargetID(this, a2);
}
if ( v2 != 3620 )
{
if ( v2 > 3620 )
{
if ( v2 == 3640 )
goto LABEL_37;
v4 = 3643;
}
else
{
v4 = 3609;
}
v3 = v2 == v4;
goto LABEL_25;
}
}
if ( *((_DWORD *)this + 321) == a2 )
return 1;
v5 = *((_DWORD *)this + 322);
return v5 == a2;
}