//
// PauseLayer::setupProgressBars from 0x1003c0f70 to 0x1003c1015 (165 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x1003bfa79
//
// 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:29:33 +0000
//
__int64 __fastcall PauseLayer::setupProgressBars(__int64 a1, double a2)
{
__int64 v2; // r14
__int64 v3; // rax
unsigned __int8 v4; // r15
__int64 v5; // rax
__int64 result; // rax
double v7; // xmm0_8
v2 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL);
v3 = GameManager::sharedState();
v4 = PlayLayer::tracksPercent(*(_QWORD *)(v3 + 544));
if ( !v4 )
{
LABEL_5:
result = GJGameLevel::isPlatformer(v2, a2);
if ( !(_BYTE)result )
return result;
return PauseLayer::setupPlatformerLabels(a1, v4);
}
if ( !(unsigned __int8)GJGameLevel::isPlatformer(v2, a2) )
{
v5 = GameManager::sharedState();
if ( (unsigned __int8)GameManager::getGameVariable(v5, "0249") )
{
a2 = PauseLayer::setupLegacyProgressBars(a1);
goto LABEL_5;
}
}
v7 = PauseLayer::setupSessionProgressBar(a1);
result = GJGameLevel::isPlatformer(v2, v7);
if ( (_BYTE)result )
return PauseLayer::setupPlatformerLabels(a1, v4);
return result;
}