//
// sub_1003E7684 from 0x1003e7684 to 0x1003e7720 (156 bytes)
//
// 1 xrefs:
// > sub_1003E75A4 @ 0x1003e7638
//
// 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:04:26 +0000
//
__int64 __fastcall sub_1003E7684(__int64 a1)
{
int v1; // w8
__int64 result; // x0
unsigned int v3; // w8
bool v4; // cc
int v5; // w8
int v6; // w9
int v7; // w8
unsigned int v10; // w8
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 <= 2019 )
{
if ( v1 <= 1850 )
{
if ( v1 == 921 || v1 == 1519 || v1 == 1618 )
return result;
return 0;
}
v3 = v1 - 1851;
v4 = v3 > 9;
v5 = 1 << v3;
v6 = 571;
LABEL_4:
v7 = v5 & v6;
if ( !v4 && v7 != 0 )
return result;
return 0;
}
if ( (unsigned int)(v1 - 2020) > 0x23 || ((1LL << ((unsigned __int8)v1 + 28)) & 0xFFF9FAFF7LL) == 0 )
{
v10 = v1 - 2867;
v4 = v10 > 0x14;
v5 = 1 << v10;
v6 = 1945407;
goto LABEL_4;
}
return result;
}