// // RetryLevelLayer::setupLastProgress from 0x9188c4 to 0x918ad8 (532 bytes) // // 2 xrefs: // > RetryLevelLayer::customSetup @ 0x919044 // > @ 0xfc670 // // 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::setupLastProgress(RetryLevelLayer *this) { cocos2d::CCDirector *v2; // x0 GameManager *WinSize; // x0 __int64 v4; // x0 long double v5; // q0 __int64 ProgressBar; // x19 __int64 (__fastcall *v7)(__int64, __int64 *); // x21 GameManager *v8; // x0 __int64 v9; // x0 cocos2d::CCString *v10; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v12; // x2 __int64 v13; // x21 void (__fastcall *v14)(__int64, __int64); // x26 __int64 v15; // x0 GameManager *v16; // x0 __int64 v17; // x0 cocos2d::CCString *v18; // x0 cocos2d::CCLabelBMFont *v19; // x0 const char *v20; // x2 __int64 v21; // x21 __int64 v22; // x0 __int64 (__fastcall *v23)(__int64); // x1 void (__fastcall *v24)(__int64, __int64 *); // x19 __int64 v25; // x24 __int64 v27; // [xsp+70h] [xbp+70h] BYREF _BYTE v28[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v29; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize(&v27, v2); v4 = GameManager::sharedState(WinSize); LODWORD(v5) = 1.0; ProgressBar = GameToolbox::createProgressBar( *(_DWORD *)(*(_QWORD *)(v4 + 544) + 14640LL), (const char *)&elf_hash_bucket[16194], v5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), ProgressBar, 3); v7 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)ProgressBar + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v29, *(float *)&v27 * 0.5, (float)((float)(*((float *)&v27 + 1) * 0.5) + 25.0) - 15.0); v8 = (GameManager *)v7(ProgressBar, &v29); v9 = GameManager::sharedState(v8); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)*(unsigned int *)(*(_QWORD *)(v9 + 544) + 14640LL)); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v10); v13 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v12); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(*((_QWORD *)this + 72), v13, 4); v14 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL); v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); v14(v13, v15); v16 = (GameManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.5); v17 = GameManager::sharedState(v16); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Attempt %i", (const char *)*(unsigned int *)(*(_QWORD *)(v17 + 544) + 12212LL)); v19 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v18); v21 = cocos2d::CCLabelBMFont::create(v19, "bigFont.fnt", v20); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(*((_QWORD *)this + 72), v21, 4); v22 = ProgressBar; v23 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL); v25 = v23(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, 0.0, 23.0); cocos2d::CCPoint::operator+(&v29, v25); v24(v21, &v29); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.5); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source