//
// sub_1002F6F64 from 0x1002f6f64 to 0x1002f71b8 (596 bytes)
//
// 1 xrefs:
// > GameObject::customSetup @ 0x1002f5104
//
// 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_1002F6F64(__int64 a1)
{
__int64 result; // x0
int v2; // w8
bool v3; // zf
unsigned int v5; // w8
unsigned int v6; // w8
__int64 v7; // x8
__int64 v8; // x9
bool v9; // zf
unsigned int v10; // w8
if ( *(_DWORD *)(a1 + 920) == 30 )
return 1;
v2 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v2 > 1911 )
{
if ( v2 > 3003 )
{
if ( (unsigned int)(v2 - 3600) > 0x3F || ((1LL << ((unsigned __int8)v2 - 16)) & 0xF0802F00001EF3D1LL) == 0 )
{
v5 = v2 - 3004;
if ( v5 > 0x1D || ((1 << v5) & 0x3E9FF07F) == 0 )
return 0;
}
return result;
}
v9 = (unsigned int)(v2 - 2866) > 0x3C || ((1LL << ((unsigned __int8)v2 - 50)) & 0x180002F600000001LL) == 0;
if ( !v9 || (unsigned int)(v2 - 1912) <= 0x17 && ((1 << (v2 - 120)) & 0xF80029) != 0 )
return result;
v10 = v2 - 2016;
if ( v10 <= 0x35 )
{
v7 = 1LL << v10;
v8 = 0x35C00000000001LL;
LABEL_34:
if ( (v7 & v8) != 0 )
return result;
}
return 0;
}
if ( v2 > 285 )
{
if ( v2 <= 1584 )
{
if ( v2 <= 1048 )
{
if ( v2 > 744 )
{
if ( ((unsigned int)(v2 - 745) > 4 || ((1 << (v2 + 23)) & 0x15) == 0) && v2 != 1022 )
return 0;
return result;
}
if ( (unsigned int)(v2 - 286) < 2 || v2 == 660 )
return result;
}
else if ( (unsigned int)(v2 - 1329) < 6 || v2 == 1049 || v2 == 1268 )
{
return result;
}
}
else
{
if ( (unsigned int)(v2 - 1811) <= 0x30 && ((1LL << ((unsigned __int8)v2 - 19)) & 0x10000000401F7LL) != 0
|| (unsigned int)(v2 - 1585) <= 0x1F && ((1 << (v2 - 49)) & 0x9C000601) != 0 )
{
return result;
}
v6 = v2 - 1704;
if ( v6 <= 0x33 )
{
v7 = 1LL << v6;
v8 = 0x8800000000001LL;
goto LABEL_34;
}
}
return 0;
}
v3 = (unsigned int)(v2 - 10) > 0x39 || ((1LL << ((unsigned __int8)v2 - 10)) & 0x203E03806E7F00FLL) == 0;
if ( v3
&& ((unsigned int)(v2 - 84) > 0x3A || ((1LL << ((unsigned __int8)v2 - 84)) & 0x700000008028001LL) == 0)
&& (unsigned int)(v2 - 200) >= 4 )
{
return 0;
}
return result;
}