//
// std::__ndk1::__time_get_c_storage::__am_pm from 0xf7539c to 0xf75488 (236 bytes)
//
// 2 xrefs:
// > ??> @ 0x898a8
// > ??> @ 0x15336e8
//
// 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_1564A80);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_1564A80) )
{
v1 = atomic_load((unsigned __int8 *)&byte_1565518);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_1565518) )
{
memset(qword_15652D8, 0, 0x240u);
__cxa_atexit((void (*)(void *))sub_63F4D8, nullptr, &unk_1548000);
_cxa_guard_release((__guard *)&byte_1565518);
}
std::string::assign(qword_15652D8, "AM");
std::string::assign(qword_15652F0, "PM");
qword_1564A78 = (__int64)qword_15652D8;
_cxa_guard_release((__guard *)&byte_1564A80);
}
return qword_1564A78;
}