// // ChallengesPage::updateTimers from 0xa62768 to 0xa629a8 (576 bytes) // // 8 xrefs: // > ChallengesPage::challengeStatusFinished @ 0xa64340 // > ChallengesPage::challengeStatusFinished @ 0xa643c4 // > ChallengesPage::claimItem @ 0xa64518 // > @ 0xa1620 // > ChallengesPage::init @ 0xa63d04 // > ChallengesPage::challengeStatusFinished @ 0xa643c8 // > ChallengesPage::challengeStatusFinished @ 0xa643d8 // > @ 0x15447e8 // // 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 13:00:15 +0000 // __int64 __fastcall ChallengesPage::updateTimers(ChallengesPage *this, float a2) { GameStatsManager *v3; // x0 double v5; // d8 int v6; // w24 __int64 v7; // x19 const char *v8; // x1 void (__fastcall *v9)(__int64, __int64); // x20 cocos2d::CCString *v10; // x0 __int64 CString; // x0 __int64 v12; // x0 __int64 v13; // x22 __int64 v14; // x20 __int64 v15; // x22 __int64 v16; // x22 GameStatsManager *v17; // x0 GameStatsManager *v18; // [xsp+58h] [xbp+58h] BYREF __int64 v19; // [xsp+60h] [xbp+60h] __int64 v20; // [xsp+68h] [xbp+68h] BYREF size_t v21; // [xsp+70h] [xbp+70h] void *v22; // [xsp+78h] [xbp+78h] __int64 v23; // [xsp+80h] [xbp+80h] BYREF size_t v24; // [xsp+88h] [xbp+88h] void *v25; // [xsp+90h] [xbp+90h] v3 = (GameStatsManager *)GameStatsManager::sharedState(_stack_chk_guard); if ( GameStatsManager::areChallengesLoaded(v3) ) { clock_gettime(0, (struct timespec *)&v18); v5 = (double)(__int64)v18 + (double)v19 / 1000000000.0; v6 = (int)(*(double *)(GameStatsManager::sharedState(v18) + 512) - v5); if ( v6 < 0 ) v6 = 0; GameToolbox::getTimeString((GameToolbox *)(unsigned int)v6, nullptr, &v20); v7 = *((_QWORD *)this + 87); v8 = (char *)&v20 + 1; v9 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 928LL); if ( (v20 & 1) != 0 ) v8 = (const char *)v22; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"New quests in: %s", v8); CString = cocos2d::CCString::getCString(v10); v9(v7, CString); v12 = *((_QWORD *)this + 91); if ( v12 ) { v13 = *(_QWORD *)(v12 + 56); if ( v13 ) { v23 = 0; v24 = 0; v25 = nullptr; v14 = *(_QWORD *)(v13 + 288); v15 = *(_QWORD *)(v13 + 264); if ( (v20 & 1) != 0 ) goto LABEL_14; LABEL_10: v25 = v22; v23 = v20; v24 = v21; while ( 1 ) { ChallengeNode::updateTimeLabel(v15, (__int64)&v23); if ( (v23 & 1) != 0 ) { operator delete(v25); if ( !v14 ) break; } else if ( !v14 ) { break; } v16 = v14; v23 = 0; v24 = 0; v25 = nullptr; v14 = *(_QWORD *)(v14 + 288); v15 = *(_QWORD *)(v16 + 264); if ( (v20 & 1) == 0 ) goto LABEL_10; LABEL_14: std::string::__init(&v23, v22, v21); } } } if ( !v6 && !*((_BYTE *)this + 713) ) { (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 88) + 344LL))(*((_QWORD *)this + 88), 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 344LL))(*((_QWORD *)this + 87), 0); *((_BYTE *)this + 712) = 0; *((_BYTE *)this + 713) = (unsigned __int8)&dword_0 + 1; v17 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)((char *)&dword_0 + 1)); GameStatsManager::resetChallengeTimer(v17); ChallengesPage::tryGetChallenges(this); } if ( (v20 & 1) != 0 ) operator delete(v22); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source