//
// sub_1002FF9FC from 0x1002ff9fc to 0x1002ffa50 (84 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1003f9e48
// > LevelEditorLayer::removeSpecial @ 0x1003fb764
//
// 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 11:03:04 +0000
//
__int64 __fastcall sub_1002FF9FC(__int64 a1)
{
int v1; // w8
__int64 result; // x0
unsigned int v3; // w8
bool v4; // cc
int v5; // w8
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 > 898 )
{
v3 = v1 - 899;
v4 = v3 > 0x10;
v5 = (1 << v3) & 0x10003;
if ( v4 || v5 == 0 )
return 0;
}
else if ( (unsigned int)(v1 - 29) >= 2 && v1 != 105 && v1 != 744 )
{
return 0;
}
return result;
}