//
// std::__ndk1::__time_get_storage::init from 0xf770a8 to 0xf773f4 (844 bytes)
//
// 3 xrefs:
// > std::__ndk1::__time_get_storage::__time_get_storage @ 0xf5e6d4
// > std::__ndk1::__time_get_storage::__time_get_storage @ 0xf5e984
// > ??> @ 0x698c8
//
// 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:43 +0000
//
void __fastcall std::__time_get_storage::init(__int64 a1, __int64 a2)
{
__int64 v4; // x24
__int64 *v5; // x21
__int64 v6; // x24
__int64 *v7; // x21
_WORD *v8; // x21
_WORD *v9; // x21
_WORD *v10; // x21
_WORD *v11; // x21
__int128 v12; // [xsp+0h] [xbp-100h] BYREF
__int64 v13; // [xsp+10h] [xbp-F0h]
__int64 v14; // [xsp+18h] [xbp-E8h]
__int64 v15; // [xsp+20h] [xbp-E0h]
__int64 v16; // [xsp+28h] [xbp-D8h]
__int64 v17; // [xsp+30h] [xbp-D0h]
__int64 v18; // [xsp+38h] [xbp-C8h]
__int64 v19; // [xsp+40h] [xbp-C0h]
__int64 v20; // [xsp+48h] [xbp-B8h]
char v21[100]; // [xsp+54h] [xbp-ACh] BYREF
__int64 v22; // [xsp+B8h] [xbp-48h]
v4 = 0;
v5 = (__int64 *)(a1 + 176);
v22 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
v19 = 0;
v20 = 0;
v17 = 0;
v18 = 0;
v15 = 0;
v16 = 0;
v14 = 0;
do
{
LODWORD(v17) = v4;
strftime_l();
std::string::assign(v5 - 21, v21);
strftime_l();
std::string::assign(v5, v21);
++v4;
v5 += 3;
}
while ( v4 != 7 );
v6 = 0;
v7 = (__int64 *)(a1 + 344);
do
{
LODWORD(v16) = v6;
strftime_l();
std::string::assign(v7, v21);
strftime_l();
std::string::assign(v7 + 36, v21);
++v6;
v7 += 3;
}
while ( v6 != 12 );
strftime_l();
std::string::assign((__int64 *)(a1 + 920), v21);
LODWORD(v15) = 13;
strftime_l();
std::string::assign((__int64 *)(a1 + 944), v21);
v8 = (_WORD *)(a1 + 968);
std::__time_get_storage::__analyze(a1, 99, a2, (__int64 *)&v12);
if ( (*(_BYTE *)(a1 + 968) & 1) != 0 )
{
**(_BYTE **)(a1 + 984) = 0;
*(_QWORD *)(a1 + 976) = 0;
}
else
{
*v8 = 0;
}
std::string::reserve((__int64 *)(a1 + 968), 0);
*(_QWORD *)(a1 + 984) = v13;
*(_OWORD *)v8 = v12;
v13 = 0;
v12 = 0u;
std::string::~string((__int64)&v12);
v9 = (_WORD *)(a1 + 992);
std::__time_get_storage::__analyze(a1, 114, a2, (__int64 *)&v12);
if ( (*(_BYTE *)(a1 + 992) & 1) != 0 )
{
**(_BYTE **)(a1 + 1008) = 0;
*(_QWORD *)(a1 + 1000) = 0;
}
else
{
*v9 = 0;
}
std::string::reserve((__int64 *)(a1 + 992), 0);
*(_QWORD *)(a1 + 1008) = v13;
*(_OWORD *)v9 = v12;
v13 = 0;
v12 = 0u;
std::string::~string((__int64)&v12);
v10 = (_WORD *)(a1 + 1016);
std::__time_get_storage::__analyze(a1, 120, a2, (__int64 *)&v12);
if ( (*(_BYTE *)(a1 + 1016) & 1) != 0 )
{
**(_BYTE **)(a1 + 1032) = 0;
*(_QWORD *)(a1 + 1024) = 0;
}
else
{
*v10 = 0;
}
std::string::reserve((__int64 *)(a1 + 1016), 0);
*(_QWORD *)(a1 + 1032) = v13;
*(_OWORD *)v10 = v12;
v13 = 0;
v12 = 0u;
std::string::~string((__int64)&v12);
v11 = (_WORD *)(a1 + 1040);
std::__time_get_storage::__analyze(a1, 88, a2, (__int64 *)&v12);
if ( (*(_BYTE *)(a1 + 1040) & 1) != 0 )
{
**(_BYTE **)(a1 + 1056) = 0;
*(_QWORD *)(a1 + 1048) = 0;
}
else
{
*v11 = 0;
}
std::string::reserve((__int64 *)(a1 + 1040), 0);
*(_QWORD *)(a1 + 1056) = v13;
*(_OWORD *)v11 = v12;
v13 = 0;
v12 = 0u;
std::string::~string((__int64)&v12);
_ReadStatusReg(TPIDR_EL0);
}