//
// sub_1800A0C60 from 0x1800a0c60 to 0x1800a0cc2 (98 bytes)
//
// 22 xrefs:
// > tinyxml2::XMLDocument::PrintError @ 0x18009eee2
// > tinyxml2::XMLDocument::PrintError @ 0x18009ef01
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f279
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f309
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f39e
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f43a
// > tinyxml2::XMLPrinter::PushText @ 0x18009f672
// > tinyxml2::XMLPrinter::PushText @ 0x18009f702
// > tinyxml2::XMLPrinter::PushText @ 0x18009f79b
// > tinyxml2::XMLPrinter::PushText @ 0x18009f827
// > tinyxml2::XMLPrinter::PushText @ 0x18009f953
// > tinyxml2::XMLAttribute::SetAttribute @ 0x1800a0098
// > tinyxml2::XMLAttribute::SetAttribute @ 0x1800a0158
// > tinyxml2::XMLAttribute::SetAttribute @ 0x1800a0221
// > tinyxml2::XMLAttribute::SetAttribute @ 0x1800a02ed
// > tinyxml2::XMLAttribute::SetAttribute @ 0x1800a03c9
// > tinyxml2::XMLUtil::ToStr @ 0x1800a0e73
// > tinyxml2::XMLUtil::ToStr @ 0x1800a0e93
// > tinyxml2::XMLUtil::ToStr @ 0x1800a0eb9
// > tinyxml2::XMLUtil::ToStr @ 0x1800a0ed5
// > tinyxml2::XMLUtil::ToStr @ 0x1800a0ef4
// > ??> @ 0x1801c15a8
//
// 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:22:13 +0000
//
int sub_1800A0C60(char *Buffer, size_t BufferCount, char *Format, ...)
{
unsigned __int64 *v6; // rax
int result; // eax
va_list va; // [rsp+88h] [rbp+20h] BYREF
va_start(va, Format);
v6 = (unsigned __int64 *)sub_1800095E0();
result = _stdio_common_vsnprintf_s(*v6, Buffer, BufferCount, 0xFFFFFFFFFFFFFFFFuLL, Format, nullptr, va);
if ( result < 0 )
return -1;
return result;
}