//
// swprintf from 0x1800448a0 to 0x1800448f8 (88 bytes)
//
// 9 xrefs:
// > sub_18003DA20 @ 0x18003dcb9
// > sub_18003DA20 @ 0x18003dcc9
// > sub_18003DA20 @ 0x18003dcdd
// > sub_18003DA20 @ 0x18003dcee
// > sub_18003E390 @ 0x18003e629
// > sub_18003E390 @ 0x18003e639
// > sub_18003E390 @ 0x18003e64d
// > sub_18003E390 @ 0x18003e65e
// > ??> @ 0x1801b15fc
//
// 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
//
int swprintf(wchar_t *const Buffer, const size_t BufferCount, const wchar_t *const Format, ...)
{
unsigned __int64 *v6; // rax
int result; // eax
va_list va; // [rsp+78h] [rbp+20h] BYREF
va_start(va, Format);
v6 = (unsigned __int64 *)sub_180009520();
result = _stdio_common_vswprintf(*v6, Buffer, BufferCount, Format, nullptr, va);
if ( result < 0 )
return -1;
return result;
}