//
// GameLevelManager::dtShouldUploadLevel from 0x8014dc to 0x801568 (140 bytes)
//
// 3 xrefs:
// > GameLevelManager::purgeUnusedLevels @ 0x808898
// > GameLevelManager::uploadDeathData @ 0x81e704
// > ??> @ 0x100de0
//
// 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 12:54:43 +0000
//
bool __fastcall GameLevelManager::dtShouldUploadLevel(GameLevelManager *this, GJGameLevel *a2)
{
__int64 v2; // x0
int v3; // w2
int v4; // w3
_BOOL8 result; // x0
v2 = GJAccountManager::sharedState(this);
v3 = *(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356);
if ( v3 <= 0 )
return 0;
v4 = *((_DWORD *)a2 + 437);
if ( v4 <= 0 )
return 0;
result = 1;
if ( v4 <= 999 )
return (int)((*((_DWORD *)a2 + 82) - *((_DWORD *)a2 + 83) - 1640531535 * v3) % 0x3E8u) < v4;
return result;
}