// // PauseLayer::setupLegacyProgressBars from 0x1001c0580 to 0x1001c08b8 (824 bytes) // // 1 xrefs: // > PauseLayer::setupProgressBars @ 0x1001bf668 // // 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:00:14 +0000 // __int64 __fastcall PauseLayer::setupLegacyProgressBars(__int64 a1) { __int64 v2; // x0 __int64 v3; // x22 __int64 v4; // x0 __int64 NormalPercent; // x0 __int64 ProgressBar; // x21 __int64 v7; // x20 float32x2_t *v8; // x23 double v9; // d0 int v10; // w0 __int64 v11; // x0 __int64 CString; // x0 __int64 v13; // x25 __int64 v14; // x0 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x22 __int64 v18; // x0 __int64 v19; // x22 float32x2_t *v20; // x21 double v21; // d0 __int64 v22; // x21 float32x2_t *v23; // x19 double v24; // d0 float32x2_t v26; // [xsp+8h] [xbp-58h] BYREF float32x2_t v27; // [xsp+10h] [xbp-50h] BYREF __int64 v28; // [xsp+18h] [xbp-48h] BYREF v2 = GameManager::sharedState(a1); v3 = *(_QWORD *)(*(_QWORD *)(v2 + 544) + 1936LL); v4 = cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v28, v4); NormalPercent = GJGameLevel::getNormalPercent(v3); ProgressBar = GameToolbox::createProgressBar(NormalPercent, 65280, 1.0); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))( *(_QWORD *)(a1 + 632), ProgressBar, 3); sub_1000262BC((float *)&v27, *(float *)&v28 * 0.5, (float)(*((float *)&v28 + 1) * 0.5) + 80.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)ProgressBar + 184LL))(ProgressBar, &v27); v7 = GameToolbox::createProgressBar(*(unsigned int *)(v3 + 888), 16776960, 1.0); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v7, 3); v8 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); sub_1000262BC((float *)&v26, 0.0, -50.0); *(float32x2_t *)&v9 = sub_100026318(v8, &v26, &v27); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v7 + 184LL))(v7, &v27, v9); v10 = GJGameLevel::getNormalPercent(v3); v11 = sub_1003065B0("%i%%", v10); CString = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v13, 4); v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.5); v15 = sub_1003065B0("%i%%", *(_DWORD *)(v3 + 888)); v16 = cocos2d::CCString::getCString(v15); v17 = cocos2d::CCLabelBMFont::create_1(v16, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v17, 4); v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 184LL))(v17, v18); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.5); v19 = cocos2d::CCLabelBMFont::create_1("Normal Mode", "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v19, 4); v20 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); sub_1000262BC((float *)&v26, 0.0, 20.0); *(float32x2_t *)&v21 = sub_100026318(v20, &v26, &v27); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v19 + 184LL))(v19, &v27, v21); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.5); v22 = cocos2d::CCLabelBMFont::create_1("Practice Mode", "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v22, 4); v23 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7); sub_1000262BC((float *)&v26, 0.0, 20.0); *(float32x2_t *)&v24 = sub_100026318(v23, &v26, &v27); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v22 + 184LL))(v22, &v27, v24); return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source