//
// std::__ndk1::__time_put::__do_put from 0xf60d48 to 0xf60eb4 (364 bytes)
//
// 2 xrefs:
// > std::__ndk1::time_put>>::do_put @ 0xf60cb4
// > ??> @ 0xed1c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:26 +0000
//
__int64 __fastcall std::__time_put::__do_put(
std::__time_put *this,
wchar_t *a2,
wchar_t **a3,
const tm *a4,
char a5,
unsigned __int8 a6)
{
size_t v8; // x22
__int64 v9; // x21
__int64 result; // x0
__int64 v11; // x22
char *v12; // [xsp+20h] [xbp-A0h] BYREF
mbstate_t ps; // [xsp+28h] [xbp-98h] BYREF
char v14; // [xsp+34h] [xbp-8Ch] BYREF
__int64 v15; // [xsp+98h] [xbp-28h]
v15 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
LOBYTE(ps.__count) = 37;
BYTE1(ps.__count) = a5;
HIWORD(ps.__count) = a6;
if ( a6 )
{
BYTE1(ps.__count) = a6;
BYTE2(ps.__count) = a5;
}
strftime_l();
v12 = &v14;
ps = 0;
v8 = *a3 - a2;
v9 = uselocale();
result = mbsrtowcs(a2, (const char **)&v12, v8, &ps);
v11 = result;
if ( v9 )
result = uselocale();
if ( v11 == -1 )
std::__throw_runtime_error("locale not supported");
*a3 = &a2[v11];
_ReadStatusReg(TPIDR_EL0);
return result;
}