//
// std::__ndk1::__time_get_c_storage::__weeks from 0x9734c8 to 0x973614 (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_D332F8;
__dmb(0xBu);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D332F8) )
{
v1 = byte_D33450;
__dmb(0xBu);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D33450) )
{
memset(dword_D333A8, 0, 0xA8u);
_cxa_atexit((void (*)(void *))sub_394034, nullptr, &unk_D1E000);
_cxa_guard_release((__guard *)&byte_D33450);
}
std::string::assign(dword_D333A8, "Sunday");
std::string::assign(dword_D333B4, "Monday");
std::string::assign(dword_D333C0, "Tuesday");
std::string::assign(dword_D333CC, "Wednesday");
std::string::assign(dword_D333D8, "Thursday");
std::string::assign(dword_D333E4, "Friday");
std::string::assign(dword_D333F0, "Saturday");
std::string::assign(dword_D333FC, "Sun");
std::string::assign(dword_D33408, "Mon");
std::string::assign(dword_D33414, "Tue");
std::string::assign(dword_D33420, "Wed");
std::string::assign(dword_D3342C, "Thu");
std::string::assign(dword_D33438, "Fri");
std::string::assign(dword_D33444, "Sat");
dword_D332F4 = (int)dword_D333A8;
_cxa_guard_release((__guard *)&byte_D332F8);
}
return dword_D332F4;
}