//
// std::__ndk1::__time_get_c_storage::__weeks from 0x9736b8 to 0x973804 (332 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:55 +0000
//
int std::__time_get_c_storage::__weeks()
{
char v0; // r0
char v1; // r0
v0 = byte_D33300;
__dmb(0xBu);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D33300) )
{
v1 = byte_D33500;
__dmb(0xBu);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D33500) )
{
memset(&unk_D33458, 0, 0xA8u);
_cxa_atexit((void (*)(void *))sub_394054, nullptr, &unk_D1E000);
_cxa_guard_release((__guard *)&byte_D33500);
}
std::wstring::assign(&unk_D33458, "S");
std::wstring::assign(&unk_D33464, "M");
std::wstring::assign(&unk_D33470, "T");
std::wstring::assign(&unk_D3347C, "W");
std::wstring::assign(&unk_D33488, "T");
std::wstring::assign(&unk_D33494, "F");
std::wstring::assign(&unk_D334A0, "S");
std::wstring::assign(&unk_D334AC, "S");
std::wstring::assign(&unk_D334B8, "M");
std::wstring::assign(&unk_D334C4, "T");
std::wstring::assign(&unk_D334D0, "W");
std::wstring::assign(&unk_D334DC, "T");
std::wstring::assign(&unk_D334E8, "F");
std::wstring::assign(&unk_D334F4, "S");
dword_D332FC = (int)&unk_D33458;
_cxa_guard_release((__guard *)&byte_D33300);
}
return dword_D332FC;
}