// // LevelPage::onInfo from 0x8c86e0 to 0x8c8acc (1004 bytes) // // 2 xrefs: // > LevelSelectLayer::onInfo @ 0x8c8af0 // > @ 0xe7898 // // 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 12:56:35 +0000 // __int64 __fastcall LevelPage::onInfo(LevelPage *this, cocos2d::CCObject *a2) { __int64 v3; // x0 int v4; // w1 __int64 v5; // x5 char *v6; // x1 cocos2d::CCString *v7; // x0 size_t v8; // x0 GJGameLevel *v9; // x2 const char *v10; // x1 cocos2d::CCString *v11; // x0 size_t v12; // x0 unsigned int v13; // w23 unsigned int NormalPercent; // w0 cocos2d::CCString *v15; // x0 size_t v16; // x0 const char *v17; // x1 size_t v18; // x0 __int64 v19; // x19 char *v21; // x19 size_t v22; // x0 char *v23; // x19 size_t v24; // x0 char *CString; // [xsp+48h] [xbp+48h] char *v26; // [xsp+48h] [xbp+48h] char *v27; // [xsp+48h] [xbp+48h] char *v28; // [xsp+48h] [xbp+48h] __int64 v29; // [xsp+58h] [xbp+58h] BYREF __int64 v30; // [xsp+60h] [xbp+60h] void *v31; // [xsp+68h] [xbp+68h] __int64 v32; // [xsp+70h] [xbp+70h] BYREF __int64 v33; // [xsp+78h] [xbp+78h] char *v34; // [xsp+80h] [xbp+80h] v3 = *((_QWORD *)this + 53); if ( v3 ) { v4 = *(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332); if ( v4 == -1 ) { v21 = (char *)&v29 + 1; v29 = 0; v30 = 0; v31 = nullptr; std::string::__init( &v29, "Roses are red\nViolets are blue\nWelcome to\n2.2", 0x4Du); if ( (v29 & 1) != 0 ) v21 = (char *)v31; v32 = 0; v33 = 0; v34 = nullptr; v22 = strlen(v21); std::string::__init(&v32, v21, v22); v19 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"It's a secret...", (char *)&v32, (ButtonSprite *)"OK", nullptr, 360.0); if ( (v32 & 1) != 0 ) operator delete(v34); } else if ( v4 == -2 ) { v23 = (char *)&v29 + 1; v29 = 0; v30 = 0; v31 = nullptr; std::string::__init( &v29, "The path leads to an old tower. It's been left alone for years, with little reason to explore.", 0x76u); if ( (v29 & 1) != 0 ) v23 = (char *)v31; v32 = 0; v33 = 0; v34 = nullptr; v24 = strlen(v23); std::string::__init(&v32, v23, v24); v19 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"The Tower", (char *)&v32, (ButtonSprite *)"OK", nullptr, 360.0); if ( (v32 & 1) != 0 ) operator delete(v34); } else { v32 = 0; v33 = 0; v34 = nullptr; if ( (*(_BYTE *)(v3 + 344) & 1) != 0 ) { std::string::__init(&v32, *(void **)(v3 + 360), *(_QWORD *)(v3 + 352)); v3 = *((_QWORD *)this + 53); } else { v5 = *(_QWORD *)(v3 + 352); v32 = *(_QWORD *)(v3 + 344); v33 = v5; v34 = *(char **)(v3 + 360); } v6 = (char *)&v32 + 1; if ( (v32 & 1) != 0 ) v6 = v34; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\nTotal Attempts: %i", v6, (unsigned int)(*(_DWORD *)(v3 + 796) - *(_DWORD *)(v3 + 800))); CString = (char *)cocos2d::CCString::getCString(v7); v29 = 0; v30 = 0; v31 = nullptr; v8 = strlen(CString); std::string::__init(&v29, CString, v8); if ( (v32 & 1) != 0 ) operator delete(v34); v9 = *((GJGameLevel **)this + 53); v10 = (const char *)*((unsigned int *)v9 + 383); if ( (int)v10 > 0 ) { v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nPractice Attempts: %i", v10); v26 = (char *)cocos2d::CCString::getCString(v11); v12 = strlen(v26); std::string::append((__int64)&v29, v26, v12); v9 = *((GJGameLevel **)this + 53); } v13 = *((_DWORD *)v9 + 202) - *((_DWORD *)v9 + 203); NormalPercent = GJGameLevel::getNormalPercent(v9); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\n" "Total Jumps: %i\n" "Normal: %i%%\n" "Practice: %i%%", (const char *)v13, NormalPercent, *(unsigned int *)(*((_QWORD *)this + 53) + 888LL)); v27 = (char *)cocos2d::CCString::getCString(v15); v16 = strlen(v27); std::string::append((__int64)&v29, v27, v16); v17 = (char *)&v29 + 1; if ( (v29 & 1) != 0 ) v17 = (const char *)v31; v28 = (char *)v17; v32 = 0; v33 = 0; v34 = nullptr; v18 = strlen(v17); std::string::__init(&v32, v28, v18); v19 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Level Stats", (char *)&v32, (ButtonSprite *)"OK", nullptr, 300.0); if ( (v32 & 1) != 0 ) operator delete(v34); } (*(void (__fastcall **)(__int64))(*(_QWORD *)v19 + 1312LL))(v19); if ( (v29 & 1) != 0 ) operator delete(v31); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source