//
// std::__ndk1::chrono::system_clock::now from 0xf41bac to 0xf41c3c (144 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::generateCustomContentURL @ 0x9679c0
// > ??> @ 0x720d0
//
// 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:13:07 +0000
//
__int64 __fastcall std::chrono::system_clock::now(std::chrono::system_clock *this)
{
int *v1; // x0
__int64 v2; // x8
__int64 v3; // x9
__int64 v5; // [xsp+8h] [xbp-18h] BYREF
__int64 v6; // [xsp+10h] [xbp-10h]
__int64 v7; // [xsp+18h] [xbp-8h]
v7 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
if ( clock_gettime(0, (struct timespec *)&v5) )
{
v1 = (int *)__errno();
std::__throw_system_error(*v1, "clock_gettime(CLOCK_REALTIME) failed");
}
v2 = v5;
v3 = v6;
_ReadStatusReg(TPIDR_EL0);
return v3 / 1000 + 1000000 * v2;
}