//
// GameObject::isSpawnableTrigger from 0x772550 to 0x7727e8 (664 bytes)
//
// 6 xrefs:
// > EditorUI::createLoop @ 0x7c3f00
// > EditorUI::editButtonUsable @ 0x7c4c74
// > EditorUI::editObject @ 0x7c8ff8
// > GJBaseGameLayer::spawnObjectsInOrder @ 0x99f768
// > GJBaseGameLayer::spawnObject @ 0x9c815c
// > ??> @ 0x104668
//
// 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:53:13 +0000
//
bool __fastcall GameObject::isSpawnableTrigger(GameObject *this)
{
int v1; // w0
v1 = *((_DWORD *)this + 257);
if ( v1 <= 1935 )
{
if ( v1 >= 1934 || v1 == 1585 )
return 1;
if ( v1 > 1585 )
{
if ( v1 > 1815 )
{
if ( v1 <= 1914 )
return v1 >= 1912 || (unsigned int)(v1 - 1817) <= 2;
if ( v1 >= 1916 )
return v1 <= 1917 || (unsigned int)(v1 - 1931) <= 1;
}
else
{
if ( v1 >= 1814 )
return 1;
if ( v1 <= 1613 )
return v1 >= 1611 || v1 == 1595;
if ( v1 == 1616 )
return 1;
if ( v1 >= 1616 )
return (unsigned int)(v1 - 1811) <= 1;
}
}
else
{
if ( v1 <= 901 )
{
if ( v1 < 899 )
{
if ( v1 > 33 )
{
if ( v1 != 105 && v1 != 744 )
return 0;
}
else if ( v1 < 32 && (unsigned int)(v1 - 29) > 1 )
{
return 0;
}
}
return 1;
}
if ( v1 == 1049 )
return 1;
if ( v1 > 1049 )
{
if ( v1 <= 1347 )
return v1 >= 1346 || v1 == 1268;
return v1 == 1520;
}
if ( v1 == 915 )
return 1;
if ( v1 >= 915 )
return (unsigned int)(v1 - 1006) <= 1;
}
return 0;
}
if ( v1 > 3024 )
{
if ( v1 > 3615 )
{
if ( v1 > 3641 )
{
if ( v1 != 3655 && (v1 < 3655 || (unsigned int)(v1 - 3660) > 3) )
return 0;
}
else if ( v1 < 3640 && (unsigned int)(v1 - 3617) > 3 )
{
return 0;
}
return 1;
}
if ( v1 >= 3612 || v1 == 3033 )
return 1;
if ( v1 > 3033 )
{
if ( v1 == 3600 )
return 1;
if ( v1 >= 3600 )
return (unsigned int)(v1 - 3602) <= 7;
return 0;
}
return (unsigned int)(v1 - 3029) <= 2;
}
else
{
if ( v1 >= 3006 )
return 1;
if ( v1 > 2905 )
{
if ( v1 <= 2917 )
return v1 >= 2909 || v1 == 2907;
if ( v1 >= 2919 )
return v1 <= 2925 || v1 == 2999;
return 0;
}
if ( v1 >= 2903 )
return 1;
if ( v1 <= 2068 )
{
if ( v1 >= 2066 || v1 == 2015 )
return 1;
if ( v1 >= 2015 )
return (unsigned int)(v1 - 2062) <= 1;
return 0;
}
return (unsigned int)(v1 - 2899) <= 2;
}
}