//
// PauseLayer::setupProgressBars from 0x1001bf610 to 0x1001bf6ac (156 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x1001be310
//
// 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:00:14 +0000
//
__int64 __fastcall PauseLayer::setupProgressBars(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x21
_BOOL8 isPlatformer; // x0
__int64 v7; // x0
__n128 GameVariable; // q0
int v9; // w0
__int64 result; // x0
v2 = GameManager::sharedState(a1);
v3 = *(_QWORD *)(*(_QWORD *)(v2 + 544) + 1936LL);
v4 = GameManager::sharedState(v2);
v5 = PlayLayer::tracksPercent(*(_QWORD *)(v4 + 544));
if ( (_DWORD)v5 )
{
isPlatformer = GJGameLevel::isPlatformer(v3);
if ( isPlatformer
|| (v7 = GameManager::sharedState(isPlatformer), GameVariable = GameManager::getGameVariable(v7, "0249"), !v9) )
{
PauseLayer::setupSessionProgressBar(a1);
}
else
{
PauseLayer::setupLegacyProgressBars(a1, GameVariable);
}
}
result = GJGameLevel::isPlatformer(v3);
if ( (_DWORD)result )
return PauseLayer::setupPlatformerLabels(a1, v5);
return result;
}