//
// sub_1002F71B8 from 0x1002f71b8 to 0x1002f7368 (432 bytes)
//
// 1 xrefs:
// > GameObject::customSetup @ 0x1002f511c
//
// 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:00 +0000
//
__int64 __fastcall sub_1002F71B8(__int64 a1)
{
int v1; // w8
__int64 result; // x0
unsigned int v4; // w8
__int64 v5; // x8
__int64 v6; // x9
bool v9; // zf
unsigned int v10; // w8
bool v11; // zf
unsigned int v12; // w8
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 > 2898 )
{
if ( ((unsigned int)(v1 - 2899) > 0x1A || ((1 << (v1 - 83)) & 0x7F7FD77) == 0)
&& ((unsigned int)(v1 - 3602) > 0x3D || ((1LL << ((unsigned __int8)v1 - 18)) & 0x3C2000C00007BCFFLL) == 0) )
{
v12 = v1 - 2999;
if ( v12 > 0x22 )
return 0;
v5 = 1LL << v12;
v6 = 0x5C283FF81LL;
goto LABEL_42;
}
}
else if ( v1 > 1810 )
{
v9 = (unsigned int)(v1 - 1912) > 0x17 || ((1 << (v1 - 120)) & 0xD00037) == 0;
if ( v9 && ((unsigned int)(v1 - 2015) > 0x35 || ((1LL << ((unsigned __int8)v1 + 33)) & 0x38800000000001LL) == 0) )
{
v10 = v1 - 1811;
if ( v10 > 6 || ((1 << v10) & 0x59) == 0 )
return 0;
}
}
else
{
if ( v1 <= 1267 )
{
if ( v1 <= 898 )
{
if ( (unsigned int)(v1 - 29) < 2 || v1 == 105 || v1 == 744 )
return result;
}
else
{
if ( (unsigned int)(v1 - 899) <= 0x10 && ((1 << (v1 + 125)) & 0x10007) != 0 )
return result;
v4 = v1 - 1006;
if ( v4 <= 0x2B )
{
v5 = 1LL << v4;
v6 = 0x80000000003LL;
LABEL_42:
if ( (v5 & v6) != 0 )
return result;
}
}
return 0;
}
v11 = (unsigned int)(v1 - 1585) > 0x1F || ((1 << (v1 - 49)) & 0x9C000401) == 0;
if ( v11 && (unsigned int)(v1 - 1346) >= 2 && v1 != 1268 )
return 0;
}
return result;
}