//
// DailyLevelPage::getDailyTime from 0x4d3ec8 to 0x4d3f38 (112 bytes)
//
// 1 xrefs:
// > DailyLevelPage::updateTimers @ 0x4d5912
//
// 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 DailyLevelPage::getDailyTime(DailyLevelPage *a1)
{
double v2; // d8
GameLevelManager *v3; // r0
int DailyTimer; // r0
int v6; // [sp+4h] [bp-10h] BYREF
int v7; // [sp+8h] [bp-Ch]
clock_gettime(0, (struct timespec *)&v6);
v2 = (double)v6 + (double)v7 / 1000000000.0;
v3 = GameLevelManager::sharedState();
DailyTimer = GameLevelManager::getDailyTimer(v3, a1->m_type);
return (int)((double)DailyTimer - v2) & ~((int)((double)DailyTimer - v2) >> 31);
}