//
// DailyLevelPage::getDailyTime from 0x1001ba894 to 0x1001ba908 (116 bytes)
//
// 1 xrefs:
// > DailyLevelPage::updateTimers @ 0x1001b9e84
//
// 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
//
int __fastcall DailyLevelPage::getDailyTime(DailyLevelPage *a1)
{
double v2; // d8
GameLevelManager *v3; // x0
int DailyTimer; // w0
timeb v6; // [xsp+0h] [xbp-30h] BYREF
ftime(&v6);
v2 = (double)(v6.millitm + 1000 * (unsigned __int64)(v6.time & 0xFFFFF)) / -1000.0;
v3 = GameLevelManager::sharedState();
DailyTimer = GameLevelManager::getDailyTimer(v3, a1->m_type);
return (int)((double)DailyTimer + v2) & ~((int)((double)DailyTimer + v2) >> 31);
}