//
// DailyLevelPage::getDailyTime from 0xa6d0e8 to 0xa6d178 (144 bytes)
//
// 2 xrefs:
// > DailyLevelPage::updateTimers @ 0xa6dc24
// > ??> @ 0xf67c0
//
// 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:21 +0000
//
__int64 __fastcall DailyLevelPage::getDailyTime(DailyLevelPage *this)
{
double v2; // d8
unsigned int *v3; // x0
__int64 result; // x0
GameLevelManager *v5; // [xsp+38h] [xbp+38h] BYREF
__int64 v6; // [xsp+40h] [xbp+40h]
clock_gettime(0, (struct timespec *)&v5);
v2 = (double)(__int64)v5 + (double)v6 / 1000000000.0;
v3 = (unsigned int *)GameLevelManager::sharedState(v5);
LODWORD(result) = (int)((double)(int)GameLevelManager::getDailyTimer(v3, *((_DWORD *)this + 183)) - v2);
if ( (int)result < 0 )
return 0;
else
return (unsigned int)result;
}