// // PlayLayer::updateProgressbar from 0x1001411f8 to 0x100141350 (344 bytes) // // 4 xrefs: // > PlayLayer::setupHasCompleted @ 0x10013fcd8 // > PlayLayer::toggleProgressbar @ 0x100147708 // > PlayLayer::postUpdate @ 0x100148a20 // > PlayLayer::resetLevel @ 0x10014be28 // // 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 10:59:32 +0000 // void __fastcall PlayLayer::updateProgressbar(__int64 a1) { __int64 v1; // x21 float CurrentPercent; // s8 float v4; // s0 float v5; // s1 float v6; // s2 __int64 v7; // x20 float v8; // s0 __int64 v9; // x19 __int64 v10; // x0 __int64 CString; // x0 int v12; // w8 __int64 v13; // x0 std::string *v14; // x1 std::string v15; // [xsp+8h] [xbp-48h] BYREF v1 = a1 + 12238; if ( (*(_BYTE *)(a1 + 12238) & 1) == 0 ) { CurrentPercent = PlayLayer::getCurrentPercent(); v4 = *(float *)(a1 + 14368); v5 = v4 * (float)(fmaxf(CurrentPercent, 0.01) / 100.0); if ( v4 <= v5 ) v6 = *(float *)(a1 + 14368); else v6 = v5; v7 = *(_QWORD *)(a1 + 14360); sub_1000262CC((float *)&v15, 0.0, 0.0, v6, *(float *)(a1 + 14372)); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v7 + 1136LL))(v7, &v15); if ( *(_BYTE *)(v1 + 2106) == 1 ) { if ( CurrentPercent >= 0.0 ) v8 = CurrentPercent; else v8 = 0.0; v9 = *(_QWORD *)(a1 + 14336); v10 = sub_1003065B0("%.2f%%", fminf(v8, 100.0)); CString = cocos2d::CCString::getCString(v10); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 928LL))(v9, CString); } else { v12 = (int)CurrentPercent & ~((int)CurrentPercent >> 31); if ( v12 >= 100 ) v13 = 100; else v13 = (unsigned int)v12; GameToolbox::intToString(v13, &v15); std::string::append(&v15, "%"); if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v15; else v14 = (std::string *)v15.__r_.__value_.__r.__words[0]; (*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 14336) + 928LL))(*(_QWORD *)(a1 + 14336), v14); if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v15.__r_.__value_.__l.__data_); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source