//
// WorldLevelPage::onInfo from 0xaa9dc8 to 0xaa9fe4 (540 bytes)
//
// 3 xrefs:
// > ??> @ 0x624e8
// > WorldLevelPage::init @ 0xaa9958
// > ??> @ 0x1542590
//
// 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 13:00:53 +0000
//
__int64 __fastcall WorldLevelPage::onInfo(WorldLevelPage *this, cocos2d::CCObject *a2)
{
__int64 v3; // x1
__int64 v4; // x5
const char *v5; // x24
unsigned int v6; // w22
unsigned int v7; // w19
unsigned int NormalPercent; // w0
cocos2d::CCString *v9; // x0
size_t v10; // x0
const char *v11; // x1
size_t v12; // x0
__int64 v13; // x19
char *CString; // [xsp+48h] [xbp+48h]
char *v16; // [xsp+48h] [xbp+48h]
__int64 v17[2]; // [xsp+58h] [xbp+58h] BYREF
void *v18; // [xsp+68h] [xbp+68h]
__int64 v19; // [xsp+70h] [xbp+70h] BYREF
__int64 v20; // [xsp+78h] [xbp+78h]
void *v21; // [xsp+80h] [xbp+80h]
v3 = *((_QWORD *)this + 84);
if ( v3 )
{
v19 = 0;
v20 = 0;
v21 = nullptr;
if ( (*(_BYTE *)(v3 + 344) & 1) != 0 )
{
std::string::__init(&v19, *(void **)(v3 + 360), *(_QWORD *)(v3 + 352));
v3 = *((_QWORD *)this + 84);
}
else
{
v4 = *(_QWORD *)(v3 + 352);
v19 = *(_QWORD *)(v3 + 344);
v20 = v4;
v21 = *(void **)(v3 + 360);
}
v5 = (char *)&v19 + 1;
if ( (v19 & 1) != 0 )
v5 = (const char *)v21;
v6 = *(_DWORD *)(v3 + 796) - *(_DWORD *)(v3 + 800);
v7 = *(_DWORD *)(v3 + 808) - *(_DWORD *)(v3 + 812);
NormalPercent = GJGameLevel::getNormalPercent((GJGameLevel *)v3);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\n"
"Total Attempts: %i\n"
"Total Jumps: %i\n"
"Normal: %i%%\n"
"Practice: %i%%",
v5,
v6,
v7,
NormalPercent,
*(unsigned int *)(*((_QWORD *)this + 84) + 888LL));
CString = (char *)cocos2d::CCString::getCString(v9);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
v10 = strlen(CString);
std::string::__init(v17, CString, v10);
if ( (v19 & 1) != 0 )
operator delete(v21);
v11 = (char *)v17 + 1;
if ( (v17[0] & 1) != 0 )
v11 = (const char *)v18;
v16 = (char *)v11;
v19 = 0;
v20 = 0;
v21 = nullptr;
v12 = strlen(v11);
std::string::__init(&v19, v16, v12);
v13 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Level Stats",
(char *)&v19,
(ButtonSprite *)"OK",
nullptr,
300.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1312LL))(v13);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
}
return _stack_chk_guard;
}