//
// std::__ndk1::__time_get_c_storage::__am_pm from 0x973f34 to 0x973fd4 (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_D33320;
__dmb(0xBu);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D33320) )
{
v1 = byte_D339A0;
__dmb(0xBu);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D339A0) )
{
memset(&unk_D33880, 0, 0x120u);
_cxa_atexit((void (*)(void *))sub_3940D4, nullptr, &unk_D1E000);
_cxa_guard_release((__guard *)&byte_D339A0);
}
std::wstring::assign(&unk_D33880, "A");
std::wstring::assign(&unk_D3388C, "P");
dword_D3331C = (int)&unk_D33880;
_cxa_guard_release((__guard *)&byte_D33320);
}
return dword_D3331C;
}