//
// PauseLayer::setupProgressBars from 0x490ab8 to 0x490b12 (90 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x490ce4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:37 +0000
//
int __fastcall PauseLayer::setupProgressBars(PauseLayer *this)
{
GameManager *v2; // r0
GJGameLevel *v3; // r5
int v4; // r0
int v5; // r6
GameManager *v6; // r0
int result; // r0
v2 = (GameManager *)GameManager::sharedState(this);
v3 = *(GJGameLevel **)(*((_DWORD *)v2 + 101) + 1408);
v4 = GameManager::sharedState(v2);
v5 = PlayLayer::tracksPercent(*(PlayLayer **)(v4 + 404));
if ( v5 )
{
if ( GJGameLevel::isPlatformer(v3)
|| (v6 = (GameManager *)GameManager::sharedState(nullptr), !GameManager::getGameVariable(v6, "0249")) )
{
PauseLayer::setupSessionProgressBar(this);
}
else
{
PauseLayer::setupLegacyProgressBars(this);
}
}
result = GJGameLevel::isPlatformer(v3);
if ( result )
return PauseLayer::setupPlatformerLabels(this, v5);
return result;
}