//
// std::__ndk1::__time_get::__time_get from 0x9745c0 to 0x974634 (116 bytes)
//
// 2 xrefs:
// > std::__ndk1::__time_get_storage::__time_get_storage @ 0x9663d0
// > std::__ndk1::__time_get_storage::__time_get_storage @ 0x9669d8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:05:56 +0000
//
// Alternative name is '_ZNSt6__ndk110__time_getC1ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE'
int *__fastcall std::__time_get::__time_get(int *a1, int a2)
{
unsigned __int8 v4; // r0
char *v5; // r1
int v6; // r0
void *exception; // r4
int v9[3]; // [sp+4h] [bp-1Ch] BYREF
v4 = *(_BYTE *)a2;
v5 = *(char **)(a2 + 8);
if ( (v4 & 1) == 0 )
v5 = (char *)(a2 + 1);
v6 = sub_992EBC(8127, v5);
*a1 = v6;
if ( !v6 )
{
exception = _cxa_allocate_exception(8u);
std::operator+(v9, "time_get_byname failed to construct for ", (unsigned __int8 *)a2);
std::runtime_error::runtime_error(exception, v9);
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))std::runtime_error::~runtime_error);
}
return a1;
}