//
// sub_100871070 from 0x100871070 to 0x1008710f1 (129 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:36:50 +0000
//
__int64 __fastcall sub_100871070(__int64 a1)
{
__int64 v1; // rax
const char *v2; // rbx
__int64 StoredOnlineLevels; // rcx
__int64 result; // rax
unsigned int *v5; // rcx
__int64 v6; // rdx
unsigned __int64 v7; // rcx
unsigned __int64 v8; // rdx
v1 = GameLevelManager::sharedState();
if ( (*(_BYTE *)(a1 + 712) & 1) != 0 )
v2 = *(const char **)(a1 + 728);
else
v2 = (const char *)(a1 + 713);
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v1, v2);
result = 0;
if ( StoredOnlineLevels )
{
v5 = *(unsigned int **)(StoredOnlineLevels + 56);
v6 = *v5;
if ( *v5 )
{
v7 = *((_QWORD *)v5 + 2);
v8 = v7 + 8 * v6 - 8;
result = 0;
do
{
if ( !*(_QWORD *)v7 )
break;
result = *(unsigned __int8 *)(*(_QWORD *)v7 + 725LL) + (unsigned int)result;
v7 += 8LL;
}
while ( v7 <= v8 );
}
}
return result;
}