//
// LevelInfoLayer::onLevelInfo from 0x3b0d38 to 0x3b0e4e (278 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelInfoLayer::onLevelInfo(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // r0
const char *v4; // r9
int v5; // r8
int v6; // r6
int NormalPercent; // r0
cocos2d::CCString *v8; // r0
char *CString; // r0
int v10; // r0
const char *v11; // r1
cocos2d::CCString *v12; // r0
char *v13; // r0
FLAlertLayer *v14; // r5
char *v15; // [sp+Ch] [bp-10h] BYREF
const char *v16; // [sp+10h] [bp-Ch] BYREF
if ( !a1->m_isBusy )
{
sub_775C20(&v16, &a1->m_level->m_levelName);
m_level = a1->m_level;
v4 = v16;
v5 = m_level->m_attempts.random - m_level->m_attempts.seed;
v6 = m_level->m_jumps.random - m_level->m_jumps.seed;
NormalPercent = GJGameLevel::getNormalPercent(m_level);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\n"
"Total Attempts: %i\n"
"Total Jumps: %i\n"
"Normal: %i%%\n"
"Practice: %i%%",
v4,
v5,
v6,
NormalPercent,
a1->m_level->m_practicePercent);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)&v15, CString);
sub_774008(&v16);
v10 = GJGameLevel::getNormalPercent(a1->m_level);
v11 = (const char *)(a1->m_level->m_newNormalPercent2.random - a1->m_level->m_newNormalPercent2.seed);
if ( (const char *)v10 != v11 )
{
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nLeaderboard: %i%%",
v11);
v13 = (char *)cocos2d::CCString::getCString(v12);
sub_774544((int)&v15, v13);
}
sub_776584((int)&v16, v15);
v14 = FLAlertLayer::create(0, (int)"Level Stats", (int)&v16, (int)"OK", 0, 300.0);
sub_774008(&v16);
v14->show(v14);
sub_774008(&v15);
}
}