//
// sub_1800C3B80 from 0x1800c3b80 to 0x1800c3bdc (92 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::showFPSLabel @ 0x1800c3656
// > ??> @ 0x1801c36f0
// > ??> @ 0x1801c36fc
//
// 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:26 +0000
//
int sub_1800C3B80(char *Buffer, size_t BufferCount, char *Format, ...)
{
_QWORD *v6; // rax
int result; // eax
va_list va; // [rsp+78h] [rbp+20h] BYREF
va_start(va, Format);
v6 = sub_1800095E0();
result = _stdio_common_vsprintf(*v6 | 2LL, Buffer, BufferCount, Format, nullptr, va);
if ( result < 0 )
return -1;
return result;
}