//
// swprintf from 0x14004de60 to 0x14004debc (92 bytes)
//
// 57 xrefs:
// > CCTextInputNode::scrollWheel @ 0x1400599c5
// > CCTextInputNode::scrollWheel @ 0x1400599f2
// > SFXFolderPickerPopup::rebuildList @ 0x1400c58b9
// > EditorSFXActionConfigLayer::refreshRows @ 0x140183fb0
// > EditorSFXActionConfigLayer::refreshRows @ 0x1401840ab
// > EditorSFXManager::encodeSound @ 0x14018745d
// > EditorSFXManager::encodeSound @ 0x1401875ee
// > EditorSFXManager::encodeSound @ 0x140187756
// > EditorSFXManager::encodeSound @ 0x1401878bc
// > EditorSFXManager::encodeSound @ 0x140187a26
// > EditorSFXManager::encodeSound @ 0x140187b8c
// > EditorSFXManager::encodeSound @ 0x140187cf6
// > EditorSFXManager::encodeSound @ 0x140187e68
// > EditorSFXManager::encodeSound @ 0x140187ee2
// > EditorSFXManager::encodeSound @ 0x140187f48
// > EditorSFXManager::encodeSound @ 0x140187fac
// > EditorSFXManager::encodeSound @ 0x14018802b
// > EditorSFXManager::encodeSound @ 0x140188093
// > EditorSFXManager::encodeSound @ 0x1401880f3
// > EditorSFXManager::encodeSound @ 0x140188150
// > EditorSFXManager::encodeSound @ 0x1401881b1
// > EditorSFXManager::serializeAll @ 0x140188a20
// > EditorSFXManager::serializeAll @ 0x140188ad3
// > EditorSFXManager::serializeAll @ 0x140188bab
// > EditorSoundsLayer::buildContentForTab @ 0x14019ddf7
// > GameManager::dataLoaded @ 0x140283764
// > GameManager::dataLoaded @ 0x14028379c
// > GameManager::dataLoaded @ 0x1402837c7
// > GameManager::dataLoaded @ 0x1402837f2
// > GameManager::dataLoaded @ 0x14028381d
// > GameManager::dataLoaded @ 0x140283848
// > GameManager::dataLoaded @ 0x140283872
// > GameManager::dataLoaded @ 0x14028389c
// > GameManager::encodeDataTo @ 0x14028612d
// > GameManager::encodeDataTo @ 0x140286156
// > GameManager::encodeDataTo @ 0x140286180
// > GameManager::encodeDataTo @ 0x1402861aa
// > GameManager::encodeDataTo @ 0x1402861d4
// > GameManager::encodeDataTo @ 0x1402861fe
// > GameManager::encodeDataTo @ 0x140286228
// > GameManager::encodeDataTo @ 0x140286252
// > IDNameBrowserPopup::rebuildList @ 0x1403c2d7d
// > IDNameBrowserPopup::mountVirtualRow @ 0x1403c3292
// > IDNameBrowserPopup::setFormID @ 0x1403c3b7c
// > IDNameBrowserPopup::updateConflictLabel @ 0x1403c3e0e
// > IDNameBrowserPopup::updateConflictLabel @ 0x1403c3e9d
// > IDNameBrowserPopup::onFormAdd @ 0x1403c4b82
// > IDNameInput::commitID @ 0x1403c9706
// > IDNameInput::collectMatches @ 0x1403ca33e
// > EditorSoundsSettingsPopup::onDownloadAll @ 0x1403d4f0e
// > sub_14040C800 @ 0x14040c89e
// > sub_14040CE70 @ 0x14040cfe9
// > sub_14040D460 @ 0x14040d50d
// > sub_14040DEE0 @ 0x14040e05a
// > sub_14040E430 @ 0x14040e4c4
// > MusicDownloadManager::encodeCustomSFXMappingEntries @ 0x14048796f
// > ??> @ 0x1409101e4
//
// This function is hookable on this platform (idp: pc, 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 11:25:34 +0000
//
int swprintf(wchar_t *const Buffer, const size_t BufferCount, const wchar_t *const Format, ...)
{
_QWORD *v6; // rax
int result; // eax
va_list va; // [rsp+78h] [rbp+20h] BYREF
va_start(va, Format);
v6 = sub_14004DE50();
result = _stdio_common_vsprintf(*v6 | 2LL, (char *)Buffer, BufferCount, (const char *)Format, nullptr, va);
if ( result < 0 )
return -1;
return result;
}