//
// std::__ndk1::__time_get::__time_get from 0xf75bec to 0xf75cd8 (236 bytes)
//
// 4 xrefs:
// > std::__ndk1::__time_get_storage::__time_get_storage @ 0xf5e948
// > std::__ndk1::__time_get_storage::__time_get_storage @ 0xf5f63c
// > ??> @ 0x80cc8
// > ??> @ 0xf2a40
//
// 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:42 +0000
//
// Alternative name is '_ZNSt6__ndk110__time_getC2ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE'
__int64 __fastcall std::__time_get::__time_get(__int64 *a1, __int64 a2)
{
__int64 result; // x0
void *exception; // x0
__int64 v6; // x1
void *v7; // x19
unsigned __int64 v8[4]; // [xsp+0h] [xbp-40h] BYREF
v8[3] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
result = newlocale();
*a1 = result;
if ( !result )
{
exception = _cxa_allocate_exception(0x10u);
v6 = a2;
v7 = exception;
std::operator+("time_get_byname failed to construct for ", v6, v8);
std::runtime_error::runtime_error(v7, v8);
_cxa_throw(
v7,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))std::overflow_error::~overflow_error);
}
_ReadStatusReg(TPIDR_EL0);
return result;
}