//
// std::__ndk1::__time_get_c_storage::__am_pm from 0x973e50 to 0x973ef0 (160 bytes)
//
// 0 xrefs:
//
// 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
//
int std::__time_get_c_storage::__am_pm()
{
char v0; // r0
char v1; // r0
v0 = byte_D33318;
__dmb(0xBu);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D33318) )
{
v1 = byte_D33878;
__dmb(0xBu);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D33878) )
{
memset(dword_D33758, 0, 0x120u);
_cxa_atexit((void (*)(void *))sub_3940B4, nullptr, &unk_D1E000);
_cxa_guard_release((__guard *)&byte_D33878);
}
std::string::assign(dword_D33758, "AM");
std::string::assign(dword_D33764, "PM");
dword_D33314 = (int)dword_D33758;
_cxa_guard_release((__guard *)&byte_D33318);
}
return dword_D33314;
}