//
// WorldLevelPage::onInfo from 0x4fc9f8 to 0x4fcad4 (220 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 WorldLevelPage::onInfo(WorldLevelPage *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // r0
const char *v4; // r9
int v5; // r7
int v6; // r6
int NormalPercent; // r0
cocos2d::CCString *v8; // r0
char *CString; // r0
FLAlertLayer *v10; // r7
char *v11; // [sp+Ch] [bp-10h] BYREF
const char *v12; // [sp+10h] [bp-Ch] BYREF
if ( a1->m_level )
{
sub_775C20(&v12);
m_level = a1->m_level;
v4 = v12;
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)&v11, CString);
sub_774008(&v12);
sub_776584((int)&v12, v11);
v10 = FLAlertLayer::create(0, (int)"Level Stats", (int)&v12, (int)"OK", 0, 300.0);
sub_774008(&v12);
v10->show(v10);
sub_774008(&v11);
}
}