//
// sub_1002AF600 from 0x1002af600 to 0x1002af653 (83 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::setupProgressBars @ 0x1002ae1c4
//
// 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:28:00 +0000
//
__int64 __fastcall sub_1002AF600(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v3; // rax
__int64 SavedLevel_1; // rax
__int64 v5; // rax
if ( !*(_BYTE *)(a1 + 488) )
{
v3 = GameLevelManager::sharedState(a2);
SavedLevel_1 = GameLevelManager::getSavedLevel_1(v3, *(_QWORD *)(a1 + 504));
if ( !SavedLevel_1 )
SavedLevel_1 = *(_QWORD *)(a1 + 504);
v5 = DeathTrackerPopup::create(SavedLevel_1);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
return result;
}