//
// LevelPage::onInfo from 0x1004844fc to 0x1004847ac (688 bytes)
//
// 1 xrefs:
// > sub_100482C7C @ 0x100482c94
//
// 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 11:05:48 +0000
//
void __fastcall LevelPage::onInfo(__int64 a1)
{
__int64 v1; // x8
int v2; // w9
std::string *v3; // x1
void *v4; // x19
std::string *v5; // x1
void *v6; // x19
void **v8; // x9
void *v9; // x0
char *CString; // x0
_DWORD *v11; // x0
void *v12; // x0
const std::string::value_type *v13; // x0
int v14; // w20
int v15; // w21
int NormalPercent; // w0
void *v17; // x0
const std::string::value_type *v18; // x0
std::string *v19; // x1
void *v20; // x19
void *v21[2]; // [xsp+18h] [xbp-98h] BYREF
char v22; // [xsp+2Fh] [xbp-81h]
void *__dst[2]; // [xsp+30h] [xbp-80h] BYREF
__int64 v24; // [xsp+40h] [xbp-70h]
void *__p[2]; // [xsp+48h] [xbp-68h] BYREF
char v26; // [xsp+5Fh] [xbp-51h]
void *v27[2]; // [xsp+60h] [xbp-50h] BYREF
char v28; // [xsp+77h] [xbp-39h]
std::string v29; // [xsp+78h] [xbp-38h] BYREF
v1 = *(_QWORD *)(a1 + 424);
if ( v1 )
{
v2 = *(_DWORD *)(v1 + 328) - *(_DWORD *)(v1 + 332);
if ( v2 == -2 )
{
sub_100009900(
&v29,
"The path leads to an old tower. It's been left alone for years, with little reason to explore.");
if ( (v29.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v5 = &v29;
else
v5 = (std::string *)v29.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v5);
v6 = FLAlertLayer::create_1(0, (__int64)"The Tower", (__int64)__p, (__int64)"OK", 0, 360.0);
if ( v26 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(void *))(*(_QWORD *)v6 + 1312LL))(v6);
}
else if ( v2 == -1 )
{
sub_100009900(&v29, "Roses are red\nViolets are blue\nWelcome to\n2.2");
if ( (v29.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v3 = &v29;
else
v3 = (std::string *)v29.__r_.__value_.__r.__words[0];
sub_100009900(v27, (char *)v3);
v4 = FLAlertLayer::create_1(0, (__int64)"It's a secret...", (__int64)v27, (__int64)"OK", 0, 360.0);
if ( v28 < 0 )
operator delete(v27[0]);
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 1312LL))(v4);
}
else
{
if ( *(char *)(v1 + 367) < 0 )
{
sub_1000097D0(__dst, *(void **)(v1 + 344), *(_QWORD *)(v1 + 352));
v1 = *(_QWORD *)(a1 + 424);
}
else
{
*(_OWORD *)__dst = *(_OWORD *)(v1 + 344);
v24 = *(_QWORD *)(v1 + 360);
}
v8 = __dst;
if ( v24 < 0 )
v8 = (void **)__dst[0];
v9 = sub_1003065B0(
"%s\nTotal Attempts: %i",
(const char *)v8,
*(_DWORD *)(v1 + 796) - *(_DWORD *)(v1 + 800));
CString = (char *)cocos2d::CCString::getCString((__int64)v9);
sub_100009900(&v29, CString);
if ( SHIBYTE(v24) < 0 )
operator delete(__dst[0]);
v11 = *(_DWORD **)(a1 + 424);
if ( (int)v11[383] >= 1 )
{
v12 = sub_1003065B0("\nPractice Attempts: %i", v11[383]);
v13 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v12);
std::string::append(&v29, v13);
v11 = *(_DWORD **)(a1 + 424);
}
v14 = v11[202];
v15 = v11[203];
NormalPercent = GJGameLevel::getNormalPercent((__int64)v11);
v17 = sub_1003065B0(
"\nTotal Jumps: %i\nNormal: %i%%\nPractice: %i%%",
v14 - v15,
NormalPercent,
*(_DWORD *)(*(_QWORD *)(a1 + 424) + 888LL));
v18 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v17);
std::string::append(&v29, v18);
if ( (v29.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v19 = &v29;
else
v19 = (std::string *)v29.__r_.__value_.__r.__words[0];
sub_100009900(v21, (char *)v19);
v20 = FLAlertLayer::create_1(0, (__int64)"Level Stats", (__int64)v21, (__int64)"OK", 0, 300.0);
if ( v22 < 0 )
operator delete(v21[0]);
(*(void (__fastcall **)(void *))(*(_QWORD *)v20 + 1312LL))(v20);
}
if ( SHIBYTE(v29.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v29.__r_.__value_.__l.__data_);
}
}