//
// sub_1002F6E08 from 0x1002f6e08 to 0x1002f6f64 (348 bytes)
//
// 1 xrefs:
// > GameObject::customSetup @ 0x1002f4f88
//
// 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_1002F6E08(__int64 a1)
{
int v1; // w8
__int64 result; // x0
bool v3; // zf
bool v4; // zf
bool v5; // zf
unsigned int v6; // w8
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 > 1912 )
{
if ( v1 > 2902 )
{
v4 = (unsigned int)(v1 - 2999) > 0x22 || ((1LL << ((unsigned __int8)v1 + 73)) & 0x400020F81LL) == 0;
if ( v4 && ((unsigned int)(v1 - 3602) > 0xD || ((1 << (v1 - 18)) & 0x3005) == 0) && v1 != 2903 )
return 0;
return result;
}
if ( v1 > 2014 )
{
if ( v1 == 2015 || v1 == 2067 )
return result;
}
else if ( v1 == 1913 || v1 == 1916 )
{
return result;
}
return 0;
}
if ( v1 > 1267 )
{
if ( v1 > 1811 )
{
v6 = v1 - 1812;
if ( v6 > 3 || v6 == 1 )
return 0;
}
else
{
v5 = (unsigned int)(v1 - 1595) > 0x14 || ((1 << (v1 - 59)) & 0x110001) == 0;
if ( v5 && (unsigned int)(v1 - 1346) >= 2 && v1 != 1268 )
return 0;
}
return result;
}
if ( v1 <= 898 )
{
if ( (unsigned int)(v1 - 29) < 2 || v1 == 105 || v1 == 744 )
return result;
return 0;
}
v3 = (unsigned int)(v1 - 899) > 0x10 || ((1 << (v1 + 125)) & 0x10007) == 0;
if ( v3 && (unsigned int)(v1 - 1006) >= 2 )
return 0;
return result;
}