//
// sub_1002FFFA8 from 0x1002fffa8 to 0x10030001c (116 bytes)
//
// 3 xrefs:
// > EditorUI::editObject @ 0x100471ddc
// > EditorUI::editObject @ 0x100472a64
// > EditorUI::editButtonUsable @ 0x10047b930
//
// 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_1002FFFA8(__int64 a1)
{
int v1; // w8
__int64 result; // x0
bool v3; // zf
bool v4; // zf
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 > 1817 )
{
v4 = (unsigned int)(v1 - 3017) > 6 || v1 == 3022;
if ( v4 && (unsigned int)(v1 - 1818) >= 2 && v1 != 1915 )
return 0;
}
else
{
v3 = (unsigned int)v1 > 0x3B || ((1LL << v1) & 0xF8000031FC00000LL) == 0;
if ( v3 && (unsigned int)(v1 - 1612) >= 2 )
return 0;
}
return result;
}