//
// sub_1002ED634 from 0x1002ed634 to 0x1002ed704 (208 bytes)
//
// 1 xrefs:
// > LevelLeaderboard::init @ 0x1002ecd1c
//
// 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:02:54 +0000
//
void __fastcall sub_1002ED634(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
v2 = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(v2 + 352) > *(_DWORD *)(v2 + 356) )
{
v3 = GameLevelManager::sharedState();
if ( (unsigned int)sub_1000ADD00(v3, "upd_ll", 5.0) - 1 >= 5 )
{
v4 = GameLevelManager::sharedState();
sub_1000AD8CC(v4, "upd_ll");
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 720) + 344LL))(*(_QWORD *)(a1 + 720), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 712) + 344LL))(*(_QWORD *)(a1 + 712), 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 728) + 344LL))(*(_QWORD *)(a1 + 728), 0);
sub_1002ED8E8(a1, 0);
*(_QWORD *)(GameLevelManager::sharedState() + 1296) = a1 + 664;
v5 = GameLevelManager::sharedState();
sub_1000BD74C(v5, *(_QWORD *)(a1 + 680), *(_DWORD *)(a1 + 688), *(_DWORD *)(a1 + 692));
}
}
}