//
// sub_1002FFB90 from 0x1002ffb90 to 0x1002ffc08 (120 bytes)
//
// 2 xrefs:
// > EditorUI::updateDeleteButtons @ 0x100187908
// > EditorUI::updateDeleteButtons @ 0x100187a20
//
// 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_1002FFB90(__int64 a1)
{
int v1; // w8
__int64 result; // x0
bool v3; // zf
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 > 1583 )
{
if ( v1 <= 1935 )
{
if ( v1 == 1584 || v1 == 1615 )
return result;
}
else if ( (unsigned int)(v1 - 1936) < 4 || v1 == 2012 )
{
return result;
}
return 0;
}
v3 = (unsigned int)(v1 - 914) > 0xA || ((1 << (v1 + 110)) & 0x6F1) == 0;
if ( v3 && (unsigned int)(v1 - 1327) >= 2 )
return 0;
return result;
}