//
// LevelInfoLayer::setupProgressBars from 0x10002b604 to 0x10002b898 (660 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1000285b0
//
// 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:57:28 +0000
//
void __fastcall LevelInfoLayer::setupProgressBars(_QWORD *a1)
{
__int64 v2; // x0
int NormalPercent; // w0
__int64 v4; // x0
char *CString; // x0
_QWORD *v6; // x0
__int64 v7; // x0
std::string *GameVariable; // x0
__int64 v9; // x0
const std::string::value_type *v10; // x0
float v11; // s8
__int64 v12; // x0
float v13; // s0
__int64 v14; // x2
std::string *v15; // x5
__int64 v16; // x20
__int64 v17; // x21
__int64 v18; // x0
__int64 v19; // x21
float32x2_t *v20; // x22
float v21; // s8
float v22; // s0
double v23; // d0
__int64 v24; // x0
__int64 v25; // x21
float32x2_t *v26; // x20
float32x2_t v27; // [xsp+10h] [xbp-60h] BYREF
float32x2_t v28; // [xsp+18h] [xbp-58h] BYREF
std::string v29; // [xsp+20h] [xbp-50h] BYREF
__int64 v30; // [xsp+38h] [xbp-38h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(&v30, v2);
NormalPercent = GJGameLevel::getNormalPercent(a1[63]);
v4 = sub_1003065B0("%i%%", NormalPercent);
CString = (char *)cocos2d::CCString::getCString(v4);
v6 = sub_100009900(&v29, CString);
v7 = GameManager::sharedState(v6);
GameVariable = (std::string *)GameManager::getGameVariable(v7, "0099");
if ( (_DWORD)GameVariable )
{
GameVariable = (std::string *)GJGameLevel::getNormalPercent(a1[63]);
if ( (_DWORD)GameVariable != *(_DWORD *)(a1[63] + 876LL) - *(_DWORD *)(a1[63] + 880LL) )
{
v9 = sub_1003065B0(" (%i%%)", *(_DWORD *)(a1[63] + 876LL) - *(_DWORD *)(a1[63] + 880LL));
v10 = (const std::string::value_type *)cocos2d::CCString::getCString(v9);
GameVariable = std::string::append(&v29, v10);
}
}
v11 = *(float *)&v30;
v12 = cocos2d::CCDirector::sharedDirector(GameVariable);
v13 = sub_100207EA0(v12);
sub_1000262BC((float *)&v28, v11 * 0.5, v13 + 136.0);
v14 = GJGameLevel::getNormalPercent(a1[63]);
if ( (v29.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v15 = &v29;
else
v15 = (std::string *)v29.__r_.__value_.__r.__words[0];
v16 = LevelInfoLayer::addProgressBar(a1, &v28, v14, 65280, "Normal Mode", v15);
if ( (GJGameLevel::isPlatformer(a1[63]) & 1) == 0 )
{
v17 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_death_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.9);
v18 = CCMenuItemSpriteExtra::create(v17, 0, a1, sub_10002C908, 0);
v19 = cocos2d::CCMenu::createWithItem(v18);
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v19, 3);
v20 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 192LL))(v16);
v21 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16);
v22 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v16 + 168LL))(v16);
sub_1000262BC((float *)&v27, (float)((float)(v21 * v22) * 0.5) + 22.0, 0.0);
*(float32x2_t *)&v23 = sub_100026318(v20, &v27, &v28);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v19 + 184LL))(v19, &v28, v23);
}
v24 = sub_1003065B0("%i%%", *(_DWORD *)(a1[63] + 888LL));
v25 = cocos2d::CCString::getCString(v24);
v26 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 192LL))(v16);
sub_1000262BC((float *)&v27, 0.0, -32.0);
sub_100026318(v26, &v27, &v28);
LevelInfoLayer::addProgressBar(a1, &v28, *(unsigned int *)(a1[63] + 888LL), 16776960, "Practice Mode", v25);
if ( SHIBYTE(v29.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v29.__r_.__value_.__l.__data_);
}