//
// LevelInfoLayer::addProgressBar from 0x7e5d68 to 0x7e5efc (404 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::setupPlatformerStats @ 0x7ea280
// > LevelInfoLayer::setupProgressBars @ 0x7ea508
// > LevelInfoLayer::setupProgressBars @ 0x7ea678
// > ??> @ 0x4ef58
//
// 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 12:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::addProgressBar(
__int64 a1,
__int64 a2,
int a3,
const char *a4,
cocos2d::CCLabelBMFont *a5,
cocos2d::CCLabelBMFont *a6,
long double a7)
{
__int64 ProgressBar; // x22
const char *v10; // x2
__int64 v11; // x20
const char *v12; // x2
__int64 v13; // x20
void (__fastcall *v14)(__int64, __int64 *); // x24
_BYTE v18[8]; // [xsp+88h] [xbp+88h] BYREF
__int64 v19; // [xsp+90h] [xbp+90h] BYREF
LODWORD(a7) = 1060320051;
ProgressBar = GameToolbox::createProgressBar(a3, a4, a7);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, ProgressBar, 3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)ProgressBar + 184LL))(ProgressBar, a2);
v11 = cocos2d::CCLabelBMFont::create(a6, "bigFont.fnt", v10);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 184LL))(v11, a2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.4);
v13 = cocos2d::CCLabelBMFont::create(a5, "bigFont.fnt", v12);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13, 4);
v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 15.0);
cocos2d::CCPoint::operator+(&v19, a2);
v14(v13, &v19);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.4);
return ProgressBar;
}