//
// PlayLayer::toggleProgressbar from 0x1001475d0 to 0x10014773c (364 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008dfa30
//
// 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 10:59:35 +0000
//
void __fastcall PlayLayer::toggleProgressbar(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__n128 GameVariable; // q0
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x21
float v8; // s8
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
__int64 v13; // x22
float v14; // s8
__int64 v15; // x0
__int64 v16; // x22
float v17; // s0
float v18; // [xsp+0h] [xbp-50h] BYREF
__int64 v19; // [xsp+8h] [xbp-48h] BYREF
v2 = GameManager::sharedState(a1);
if ( *(_BYTE *)(a1 + 12238) == 1 )
{
v3 = GameManager::sharedState(v2);
GameVariable = GameManager::getGameVariable(v3, "0145");
v6 = v5;
v7 = 0;
v8 = 0.0;
}
else
{
v7 = *(unsigned __int8 *)(v2 + 924);
v9 = GameManager::sharedState(v2);
GameVariable = GameManager::getGameVariable(v9, "0040");
v6 = v10;
GameVariable.n128_u32[0] = 1121714176;
if ( (_DWORD)v7 )
v8 = 110.0;
else
v8 = 0.0;
}
v11 = (*(__int64 (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 14352) + 344LL))(
*(_QWORD *)(a1 + 14352),
v7,
GameVariable);
v12 = cocos2d::CCDirector::sharedDirector(v11);
cocos2d::CCDirector::getWinSize(&v19, v12);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 14336) + 344LL))(*(_QWORD *)(a1 + 14336), v6);
v13 = *(_QWORD *)(a1 + 14336);
v14 = v8 + (float)(*(float *)&v19 * 0.5);
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 192LL))(v13);
sub_1000262BC(&v18, v14, *(float *)(v15 + 4));
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 184LL))(v13, &v18);
v16 = *(_QWORD *)(a1 + 14336);
v17 = 0.0;
if ( (v7 & 1) == 0 && !*(_BYTE *)(a1 + 12238) )
v17 = 0.5;
sub_1000262BC(&v18, v17, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v16 + 296LL))(v16, &v18);
PlayLayer::updateProgressbar(a1);
if ( (*(_BYTE *)(a1 + 12238) & (unsigned __int8)v6 & 1) != 0 )
GJBaseGameLayer::updatePlatformerTime(a1);
}