//
// std::__ndk1::chrono::steady_clock::now from 0xf41c7c to 0xf41cf4 (120 bytes)
//
// 5 xrefs:
// > GManager::waitForSave @ 0x6a9188
// > GManager::waitForSave @ 0x6a91ac
// > LevelEditorLayer::waitForAutoSave @ 0x78f4b0
// > LevelEditorLayer::waitForAutoSave @ 0x78f4d0
// > ??> @ 0xc5e48
//
// 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::steady_clock::now(std::chrono::steady_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(1, (struct timespec *)&v5) )
{
v1 = (int *)__errno();
std::__throw_system_error(*v1, "clock_gettime(CLOCK_MONOTONIC) failed");
}
v2 = v5;
v3 = v6;
_ReadStatusReg(TPIDR_EL0);
return v3 + 1000000000 * v2;
}