//
// GameObject::isBasicTrigger from 0x1402a0590 to 0x1402a060c (124 bytes)
//
// 3 xrefs:
// > EditorUI::editButtonUsable @ 0x1401ba471
// > EditorUI::editObject @ 0x1401bb56f
// > EditorUI::editObject @ 0x1401bcdab
//
// 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:29:15 +0000
//
bool __fastcall GameObject::isBasicTrigger(__int64 a1)
{
int v1; // edx
int v2; // edx
int v3; // edx
int v4; // edx
int v6; // edx
int v7; // edx
int v8; // edx
int v9; // edx
v1 = *(_DWORD *)(a1 + 1036);
if ( v1 <= 1612 )
{
if ( v1 != 1612 )
{
switch ( v1 )
{
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 32:
case 33:
case 55:
case 56:
case 57:
case 58:
case 59:
return 1;
default:
return 0;
}
}
return 1;
}
if ( v1 > 3017 )
{
v6 = v1 - 3018;
if ( !v6 )
return 1;
v7 = v6 - 1;
if ( !v7 )
return 1;
v8 = v7 - 1;
if ( !v8 )
return 1;
v9 = v8 - 1;
if ( !v9 )
return 1;
return v9 == 2;
}
else
{
if ( v1 == 3017 )
return 1;
v2 = v1 - 1613;
if ( !v2 )
return 1;
v3 = v2 - 205;
if ( !v3 )
return 1;
v4 = v3 - 1;
if ( !v4 )
return 1;
return v4 == 96;
}
}