//
// LevelInfoLayer::addProgressBar from 0x14041fc00 to 0x14041fd4e (334 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::setupPlatformerStats @ 0x14041f4c1
// > LevelInfoLayer::setupProgressBars @ 0x14041f9ed
// > LevelInfoLayer::setupProgressBars @ 0x14041fb7a
// > ??> @ 0x1409267c8
//
// 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 11:32:09 +0000
//
struct cocos2d::CCSprite *__fastcall LevelInfoLayer::addProgressBar(
__int64 a1,
__int64 a2,
unsigned int a3,
__int64 a4,
const char *a5,
const char *a6)
{
struct cocos2d::CCSprite *v8; // rsi
struct cocos2d::CCLabelBMFont *v9; // rbx
struct cocos2d::CCLabelBMFont *v10; // rbx
__int64 v11; // rax
__int16 v13; // [rsp+40h] [rbp+8h] BYREF
char v14; // [rsp+42h] [rbp+Ah]
char v15; // [rsp+58h] [rbp+20h] BYREF
v13 = *(_WORD *)a4;
v14 = *(_BYTE *)(a4 + 2);
v8 = GameToolbox::createProgressBar(a1, a3, &v13);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8, 3);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v8 + 184LL))(v8, a2);
v9 = cocos2d::CCLabelBMFont::create(a6, (const char *)&qword_140704F78);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v9, 4);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v9 + 184LL))(v9, a2);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 160LL))(v9);
v10 = cocos2d::CCLabelBMFont::create(a5, (const char *)&qword_140704F78);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v10, 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 15.0);
cocos2d::CCPoint::operator+(a2, &v13, v11);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int16 *))(*(_QWORD *)v10 + 184LL))(v10, &v13);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v10 + 160LL))(v10);
return v8;
}