//
// std::__ndk1::__time_get_c_storage::__am_pm from 0xf75488 to 0xf75574 (236 bytes)
//
// 2 xrefs:
// > ??> @ 0xce428
// > ??> @ 0x1533790
//
// 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
//
__int64 std::__time_get_c_storage::__am_pm()
{
unsigned __int8 v0; // w8
unsigned __int8 v1; // w8
v0 = atomic_load((unsigned __int8 *)&byte_1564A90);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_1564A90) )
{
v1 = atomic_load((unsigned __int8 *)&byte_1565760);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_1565760) )
{
memset(&unk_1565520, 0, 0x240u);
__cxa_atexit((void (*)(void *))sub_63F5B4, nullptr, &unk_1548000);
_cxa_guard_release((__guard *)&byte_1565760);
}
std::wstring::assign((int)&unk_1565520, U"AM");
std::wstring::assign((int)&unk_1565538, U"PM");
qword_1564A88 = (__int64)&unk_1565520;
_cxa_guard_release((__guard *)&byte_1564A90);
}
return qword_1564A88;
}