// // RetryLevelLayer::customSetup from 0x918f24 to 0x919668 (1860 bytes) // // 2 xrefs: // > @ 0xf15d0 // > @ 0x14699f8 // // 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:57:20 +0000 // __int64 __fastcall RetryLevelLayer::customSetup(RetryLevelLayer *this) { cocos2d::CCDirector *v2; // x0 GameManager *WinSize; // x0 __int64 v4; // x0 const char *v5; // x2 __int64 v6; // x1 cocos2d::CCLabelBMFont *v7; // x0 cocos2d::CCLabelBMFont *v8; // x26 void (__fastcall *v9)(cocos2d::CCLabelBMFont *, __int64 *); // x28 GameManager *v10; // x0 __int64 v11; // x0 cocos2d::CCString *v12; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v14; // x2 __int64 v15; // x26 GameManager *v16; // x0 int v17; // w4 __int64 v18; // x3 __int64 v19; // x2 cocos2d::CCString *v20; // x0 const char *v21; // x0 cocos2d::CCString *v22; // x0 cocos2d::CCLabelBMFont *v23; // x0 const char *v24; // x2 __int64 v25; // x25 __int64 v26; // x0 __int64 (__fastcall *v27)(__int64); // x1 void (__fastcall *v28)(__int64, __int64 *); // x26 __int64 v29; // x28 cocos2d::CCMenu *v30; // x0 __int64 v31; // x0 cocos2d::CCNode *v32; // x26 cocos2d::CCNode *v33; // x25 const char *v34; // x1 __int64 v35; // x0 __int64 v36; // x26 void (__fastcall *v37)(__int64, __int64 *); // x25 const char *v38; // x1 __int64 v39; // x0 __int64 v40; // x25 void (__fastcall *v41)(__int64, __int64 *); // x28 PlatformToolbox *v42; // x0 const char *v43; // x1 __int64 v45; // x27 cocos2d::CCNode *v46; // x28 const cocos2d::CCPoint *v47; // x0 void (__fastcall *v48)(__int64, __int64 *); // x26 const char *v49; // x1 __int64 v50; // x26 cocos2d::CCNode *v51; // x19 cocos2d::CCNode *v52; // x27 const cocos2d::CCPoint *v53; // x0 void (__fastcall *v54)(__int64, __int64 *); // x19 cocos2d::CCNode *v55; // [xsp+78h] [xbp+78h] __int64 v56; // [xsp+80h] [xbp+80h] BYREF _BYTE v57[8]; // [xsp+88h] [xbp+88h] BYREF __int64 v58; // [xsp+90h] [xbp+90h] BYREF __int64 v59; // [xsp+98h] [xbp+98h] BYREF __int64 v60; // [xsp+A0h] [xbp+A0h] BYREF __int64 v61; // [xsp+A8h] [xbp+A8h] BYREF __int64 v62; // [xsp+B0h] [xbp+B0h] BYREF __int64 v63; // [xsp+B8h] [xbp+B8h] cocos2d::CCLabelBMFont *v64; // [xsp+C0h] [xbp+C0h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize(&v56, v2); v4 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(WinSize) + 544) + 1936LL); v62 = 0; v63 = 0; v5 = (const char *)(v4 + 344); v64 = nullptr; if ( (*(_BYTE *)(v4 + 344) & 1) != 0 ) { std::string::__init(&v62, *(void **)(v4 + 360), *(_QWORD *)(v4 + 352)); } else { v6 = *(_QWORD *)(v4 + 352); v62 = *(_QWORD *)v5; v63 = v6; v64 = *(cocos2d::CCLabelBMFont **)(v4 + 360); } v7 = (cocos2d::CCLabelBMFont *)((char *)&v62 + 1); if ( (v62 & 1) != 0 ) v7 = v64; v8 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v7, "bigFont.fnt", v5); if ( (v62 & 1) != 0 ) operator delete(v64); v9 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v61, *(float *)&v56 * 0.5, (float)((float)(*((float *)&v56 + 1) * 0.5) + 80.0) - 15.0); v9(v8, &v61); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 72) + 456LL))( *((_QWORD *)this + 72), v8); cocos2d::CCLabelBMFont::limitLabelWidth(v8, 320.0, 0.0, 0.0); RetryLevelLayer::setupLastProgress(this); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 72) + 568LL))(*((_QWORD *)this + 72), 0, 1); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 568LL))(*((_QWORD *)this + 72), 1, 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 70) + 344LL))(*((_QWORD *)this + 70), 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, 0.0, 5.0); cocos2d::CCPoint::operator+(&v61, (char *)this + 544); cocos2d::CCPoint::operator=((char *)this + 544, &v61); v10 = (GameManager *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v57, *(float *)&v56 * 0.5, (float)((float)(*((float *)&v56 + 1) * 0.5) + -10.0) - 15.0); v11 = GameManager::sharedState(v10); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Jumps: %i", (const char *)*(unsigned int *)(*(_QWORD *)(v11 + 544) + 14624LL)); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v12); v15 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v14); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(*((_QWORD *)this + 72), v15, 3); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v15 + 184LL))(v15, v57); v16 = (GameManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.8); v17 = (int)*(double *)(*(_QWORD *)(GameManager::sharedState(v16) + 544) + 920LL); v18 = (unsigned int)(v17 % 60); v19 = (unsigned int)(v17 / 60 % 60); if ( v17 / 3600 ) v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%02d:%02d:%02d", (const char *)(unsigned int)(v17 / 3600), v19, v18); else v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%02d:%02d", (const char *)(unsigned int)v19, (unsigned int)v18); v21 = (const char *)cocos2d::CCString::getCString(v20); v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Time: %s", v21); v23 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v22); v25 = cocos2d::CCLabelBMFont::create(v23, "goldFont.fnt", v24); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(*((_QWORD *)this + 72), v25, 3); v26 = v15; v27 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL); v29 = v27(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, 0.0, -24.0); cocos2d::CCPoint::operator+(&v61, v29); v28(v25, &v61); v30 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.8); v31 = cocos2d::CCMenu::create(v30); *((_QWORD *)this + 77) = v31; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(*((_QWORD *)this + 72), v31, 1); v32 = *((cocos2d::CCNode **)this + 72); v33 = *((cocos2d::CCNode **)this + 77); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v60, *(float *)&v56 * 0.5, (float)((float)(*((float *)&v56 + 1) * 0.5) + -115.0) - 10.0); cocos2d::CCNode::convertToWorldSpace(&v61, v32, (const cocos2d::CCPoint *)&v60); cocos2d::CCNode::convertToNodeSpace(&v58, v33, (const cocos2d::CCPoint *)&v61); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_replayBtn_001.png", v34); v36 = CCMenuItemSpriteExtra::create(v35, 0, (__int64)this, (__int64)RetryLevelLayer::onReplay, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 77) + 456LL))(*((_QWORD *)this + 77), v36); v37 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v36 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, -100.0, 0.0); cocos2d::CCPoint::operator+(&v61, &v58); v37(v36, &v61); v39 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_menuBtn_001.png", v38); v40 = CCMenuItemSpriteExtra::create(v39, 0, (__int64)this, (__int64)RetryLevelLayer::onMenu, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 77) + 456LL))(*((_QWORD *)this + 77), v40); v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, 100.0, 0.0); cocos2d::CCPoint::operator+(&v61, &v58); v41(v40, &v61); v42 = (PlatformToolbox *)(*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 72) + 184LL))( *((_QWORD *)this + 72), (char *)this + 544); if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v42) ) { v45 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_Start_001.png", v43); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), v45, 10); v46 = *((cocos2d::CCNode **)this + 72); v55 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 512LL))(v36); v47 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 192LL))(v36); cocos2d::CCNode::convertToWorldSpace(&v61, v55, v47); cocos2d::CCNode::convertToNodeSpace(&v59, v46, (const cocos2d::CCPoint *)&v61); v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, 0.0, -25.0); cocos2d::CCPoint::operator+(&v61, &v59); v48(v45, &v61); v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_B_001.png", v49); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), v50, 10); v51 = *((cocos2d::CCNode **)this + 72); v52 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 512LL))(v40); v53 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 192LL))(v40); cocos2d::CCNode::convertToWorldSpace(&v60, v52, v53); cocos2d::CCNode::convertToNodeSpace(&v61, v51, (const cocos2d::CCPoint *)&v60); cocos2d::CCPoint::operator=(&v59, &v61); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, 0.0, -25.0); cocos2d::CCPoint::operator+(&v61, &v59); v54(v50, &v61); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 0.8); } v62 = 0; v63 = 0; v64 = nullptr; std::string::__init(&v62, "Geometry Dash", 0xDu); PlatformToolbox::tryShowRateDialog((__int64)&v62); if ( (v62 & 1) != 0 ) operator delete(v64); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source