//
// LevelInfoLayer::shouldDownloadLevel from 0x1002af660 to 0x1002af6fb (155 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:28:00 +0000
//
bool __fastcall LevelInfoLayer::shouldDownloadLevel(__int64 a1)
{
__int64 v1; // rcx
bool result; // al
__int128 *v3; // rcx
unsigned int v4; // ecx
bool v5; // bl
__int128 v6; // [rsp-28h] [rbp-28h] BYREF
void *v7; // [rsp-18h] [rbp-18h]
v1 = *(_QWORD *)(a1 + 504);
result = 1;
if ( *(_DWORD *)(v1 + 1140) != 4 )
{
if ( (*(_BYTE *)(v1 + 392) & 1) != 0 )
{
sub_10001AD30(&v6, *(const void **)(v1 + 408), *(_QWORD *)(v1 + 400));
v4 = (unsigned __int8)v6;
if ( (v6 & 1) == 0 )
{
LABEL_4:
result = v4 >> 1 == 0;
if ( (v4 & 1) == 0 )
return result;
LABEL_8:
v5 = result;
operator delete(v7);
return v5;
}
}
else
{
v3 = (__int128 *)(v1 + 392);
v7 = *((void **)v3 + 2);
v6 = *v3;
v4 = (unsigned __int8)v6;
if ( (v6 & 1) == 0 )
goto LABEL_4;
}
result = *((_QWORD *)&v6 + 1) == 0;
if ( (v4 & 1) == 0 )
return result;
goto LABEL_8;
}
return result;
}