//
// DailyLevelPage::updateTimers from 0x1001b9e58 to 0x1001b9fbc (356 bytes)
//
// 4 xrefs:
// > DailyLevelPage::dailyStatusFinished @ 0x1001ba1a8
// > DailyLevelPage::dailyStatusFinished @ 0x1001ba1cc
// > DailyLevelPage::init @ 0x1001b9734
// > DailyLevelPage::dailyStatusFinished @ 0x1001ba1ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall DailyLevelPage::updateTimers(DailyLevelPage *a1, float a2)
{
GameLevelManager *v3; // x0
int DailyTime; // w20
void **v5; // x1
DailyLevelNode *m_dailyNode; // x21
cocos2d::CCLabelBMFont *m_timeLabel; // x0
void **v8; // x1
GameLevelManager *v9; // x0
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
__int64 v11; // [xsp+10h] [xbp-40h]
void *v12[2]; // [xsp+18h] [xbp-38h] BYREF
__int64 v13; // [xsp+28h] [xbp-28h]
v3 = GameLevelManager::sharedState();
if ( GameLevelManager::hasDailyStateBeenLoaded(v3, a1->m_type) )
{
DailyTime = DailyLevelPage::getDailyTime(a1);
DailyLevelPage::getDailyTimeString((__int64)a1, DailyTime, v12);
if ( a1->m_type != Event )
{
v5 = v13 >= 0 ? v12 : (void **)v12[0];
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))a1->m_timeLabel->setString)(a1->m_timeLabel, v5);
m_dailyNode = a1->m_dailyNode;
if ( m_dailyNode )
{
if ( SHIBYTE(v13) < 0 )
{
sub_1000097D0(__p, v12[0], (unsigned __int64)v12[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v12;
v11 = v13;
}
m_timeLabel = m_dailyNode->m_timeLabel;
if ( m_timeLabel )
{
if ( v11 >= 0 )
v8 = __p;
else
v8 = (void **)__p[0];
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))m_timeLabel->setString)(m_timeLabel, v8);
}
if ( SHIBYTE(v11) < 0 )
operator delete(__p[0]);
}
}
if ( DailyTime <= 0 && !*(&a1->m_gettingDailyStatus + 1) )
{
*(&a1->m_gettingDailyStatus + 1) = 1;
if ( a1->m_type != Event )
{
((void (__fastcall *)(LoadingCircle *, __int64))a1->m_timeCircle->setVisible)(a1->m_timeCircle, 1);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_timeLabel->setVisible)(a1->m_timeLabel, 0);
}
v9 = GameLevelManager::sharedState();
GameLevelManager::resetDailyLevelState(v9, a1->m_type);
DailyLevelPage::tryGetDailyStatus(a1);
a1->m_gettingDailyStatus = 0;
}
if ( SHIBYTE(v13) < 0 )
operator delete(v12[0]);
}
}