//
// sub_100265148 from 0x100265148 to 0x1002651b0 (104 bytes)
//
// 2 xrefs:
// > sub_100264620 @ 0x10026466c
// > sub_100264AAC @ 0x100264b0c
//
// 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:01:40 +0000
//
__int64 __fastcall sub_100265148(__int64 a1)
{
__int64 v2; // x0
char *v3; // x1
__int64 result; // x0
unsigned int *v5; // x8
__int64 v6; // x9
unsigned __int64 v7; // x8
unsigned __int64 v8; // x9
v2 = GameLevelManager::sharedState();
v3 = (char *)(a1 + 704);
if ( *(char *)(a1 + 727) < 0 )
v3 = *(char **)v3;
result = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( result )
{
v5 = *(unsigned int **)(result + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD *)v5 + 2);
v8 = v7 + 8 * v6 - 8;
do
{
if ( !*(_QWORD *)v7 )
break;
*(_BYTE *)(*(_QWORD *)v7 + 426LL) = 0;
v7 += 8LL;
}
while ( v7 <= v8 );
}
}
return result;
}