//
// WorldLevelPage::onInfo from 0x62f724 to 0x62f83c (280 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:15 +0000
//
int __fastcall WorldLevelPage::onInfo(int this, cocos2d::CCObject *a2)
{
const char *v2; // r9
int v3; // r1
char *v4; // r8
GJGameLevel *v5; // r0
int v6; // r7
int v7; // r5
int NormalPercent; // r0
cocos2d::CCString *v9; // r0
const char *CString; // r5
size_t v11; // r0
size_t v12; // r0
int *v13; // r5
int v14[2]; // [sp+Ch] [bp-20h] BYREF
char *v15; // [sp+14h] [bp-18h]
int v16[2]; // [sp+18h] [bp-14h] BYREF
const char *v17; // [sp+20h] [bp-Ch]
v3 = *(_DWORD *)(this + 524);
v4 = (char *)this;
if ( v3 )
{
std::string::basic_string(v16, v3 + 280);
v5 = *((GJGameLevel **)v4 + 131);
if ( (v16[0] & 1) == 0 )
v2 = (char *)v16 + 1;
v6 = *((_DWORD *)v5 + 155) - *((_DWORD *)v5 + 156);
if ( (v16[0] & 1) != 0 )
v2 = v17;
v7 = *((_DWORD *)v5 + 158) - *((_DWORD *)v5 + 159);
NormalPercent = GJGameLevel::getNormalPercent(v5);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\n"
"Total Attempts: %i\n"
"Total Jumps: %i\n"
"Normal: %i%%\n"
"Practice: %i%%",
v2,
v6,
v7,
NormalPercent,
*(_DWORD *)(*((_DWORD *)v4 + 131) + 712));
CString = (const char *)cocos2d::CCString::getCString(v9);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v11 = strlen(CString);
std::string::__init(v14, CString, v11);
std::string::~string((int)v16);
v16[0] = 0;
v16[1] = 0;
if ( (v14[0] & 1) == 0 )
v4 = (char *)v14 + 1;
v17 = nullptr;
if ( (v14[0] & 1) != 0 )
v4 = v15;
v12 = strlen(v4);
std::string::__init(v16, v4, v12);
v13 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Level Stats",
(int)v16,
(ButtonSprite *)"OK",
nullptr,
300.0);
std::string::~string((int)v16);
(*(void (__fastcall **)(int *))(*v13 + 656))(v13);
return std::string::~string((int)v14);
}
return this;
}