// // PauseLayer::setupSessionProgressBar from 0x7d5afc to 0x7d5ed4 (984 bytes) // // 2 xrefs: // > PauseLayer::setupProgressBars @ 0x7d806c // > @ 0xf6250 // // 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:54:20 +0000 // __int64 __fastcall PauseLayer::setupSessionProgressBar(PauseLayer *this) { cocos2d::CCDirector *v2; // x0 GJGameLevel *v3; // x20 cocos2d::CCDirector *v4; // x0 GameManager *WinSize; // x0 unsigned __int8 *NormalPercent; // x0 int v7; // w25 int v8; // w24 __int64 v9; // x0 int v10; // w19 unsigned int CurrentPercentInt; // w27 GameManager *isPlatformer; // x0 char v13; // w0 long double v14; // q0 float v15; // s1 float v16; // s1 __int64 ProgressBar; // x28 float v18; // s1 cocos2d::CCString *v19; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v21; // x2 __int64 v22; // x27 __int64 v23; // x27 const char *v24; // x2 char *v25; // x0 __int64 v26; // x25 cocos2d::CCString *v27; // x0 cocos2d::CCLabelBMFont *v28; // x0 const char *v29; // x2 __int64 v30; // x24 GJGameLevel *v31; // x0 void (__fastcall *v32)(__int64, __int64 *); // x20 char v33; // w0 float v34; // s1 void (__fastcall *v36)(__int64, __int64 *); // [xsp+78h] [xbp+78h] float v37; // [xsp+80h] [xbp+80h] void (__fastcall *v38)(__int64, __int64 *); // [xsp+80h] [xbp+80h] __int64 v39; // [xsp+80h] [xbp+80h] __int64 v40; // [xsp+98h] [xbp+98h] const char *v41; // [xsp+A0h] [xbp+A0h] BYREF __int64 v42; // [xsp+A8h] [xbp+A8h] BYREF __int64 v43; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v44[8]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v45; // [xsp+C0h] [xbp+C0h] BYREF v2 = *(cocos2d::CCDirector **)(GameManager::sharedState(_stack_chk_guard) + 544); v3 = *((GJGameLevel **)v2 + 242); v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize(&v42, v4); NormalPercent = (unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState(WinSize) + 544) + 12288LL); v7 = NormalPercent[256]; if ( NormalPercent[256] ) { v8 = *((_DWORD *)v3 + 222); } else { NormalPercent = (unsigned __int8 *)GJGameLevel::getNormalPercent(v3); v8 = (int)NormalPercent; } v9 = GameManager::sharedState((GameManager *)NormalPercent); v10 = 0; CurrentPercentInt = PlayLayer::getCurrentPercentInt(*(PlayLayer **)(v9 + 544)); isPlatformer = (GameManager *)(unsigned __int8)GJGameLevel::isPlatformer(v3); if ( (_BYTE)isPlatformer ) v10 = *(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState(isPlatformer) + 544) + 1920LL); v13 = GJGameLevel::isPlatformer(v3); v15 = 0.0; if ( v13 ) { if ( v10 ) v15 = 28.0; else v15 = 17.0; } v16 = (float)((float)(*((float *)&v42 + 1) * 0.5) + 55.0) - v15; LOWORD(v40) = -256; if ( v7 ) BYTE2(v40) = -1; else BYTE2(v40) = 0; memset(&v41, 40, 3); LODWORD(v14) = 1.0; v37 = v16; ProgressBar = GameToolbox::createProgressBar(v8, v41, v14); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 79) + 464LL))( *((_QWORD *)this + 79), ProgressBar, 3); v18 = v37; v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)ProgressBar + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, *(float *)&v42 * 0.5, v18); v38(ProgressBar, &v45); GameToolbox::addProgressBarFill(ProgressBar, CurrentPercentInt, v40, 2u); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)CurrentPercentInt); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v19); v22 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v21); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 79) + 464LL))(*((_QWORD *)this + 79), v22, 4); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); v39 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 0.0, 1.0); cocos2d::CCPoint::operator+(&v45, v39); v36(v22, &v45); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.5); v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.0, 21.0); cocos2d::CCPoint::operator+(&v43, v23); if ( !(unsigned __int8)GJGameLevel::isPlatformer(v3) ) { if ( v7 ) v25 = "Practice Mode"; else v25 = "Normal Mode"; v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v25, "bigFont.fnt", v24); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 79) + 464LL))( *((_QWORD *)this + 79), v26, 4); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL))(v26, &v43); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.5); } if ( v8 > 0 ) { v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Best: %i%%", (const char *)(unsigned int)v8); v28 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v27); v30 = cocos2d::CCLabelBMFont::create(v28, "goldFont.fnt", v29); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 79) + 464LL))( *((_QWORD *)this + 79), v30, 4); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 0.48); v31 = v3; v32 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 184LL); v33 = GJGameLevel::isPlatformer(v31); v34 = 0.0; if ( !v33 ) v34 = 18.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 0.0, v34); cocos2d::CCPoint::operator+(&v45, &v43); v32(v30, &v45); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source