//
// sub_761C00 from 0x761c00 to 0x761c78 (120 bytes)
//
// 1 xrefs:
// > sub_7655AC @ 0x765610
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_761C00(int a1, wchar_t *a2, size_t a3, const wchar_t *a4, struct tm *tp)
{
char *v9; // r0
char *v10; // r7
size_t v11; // r4
void *v12; // r6
size_t v13; // r4
v9 = setlocale(6, nullptr);
v10 = v9;
if ( v9 )
{
v11 = strlen(v9) + 1;
v12 = operator new[](v11);
memcpy(v12, v10, v11);
setlocale(6, *(const char **)(a1 + 16));
v13 = wcsftime(a2, a3, a4, tp);
setlocale(6, (const char *)v12);
operator delete[](v12);
}
else
{
v13 = wcsftime(a2, a3, a4, tp);
setlocale(6, nullptr);
}
if ( !v13 )
*a2 = 0;
}