//
// sub_1002ED704 from 0x1002ed704 to 0x1002ed778 (116 bytes)
//
// 1 xrefs:
// > LevelLeaderboard::init @ 0x1002ecff8
//
// 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
//
__int64 __fastcall sub_1002ED704(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x0
result = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(result + 352) > *(_DWORD *)(result + 356) )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v6 = GameManager::sharedState(v5);
GameManager::setIntGameVariable(v6, "0098", v5);
return sub_1002EDE1C(a1, v5, *(unsigned int *)(a1 + 692));
}
return result;
}