//
// sub_180009530 from 0x180009530 to 0x18000958e (94 bytes)
//
// 22 xrefs:
// > cocos2d::CCPrettyPrinter::visit @ 0x180008161
// > cocos2d::CCPrettyPrinter::visit @ 0x180008463
// > cocos2d::CCPrettyPrinter::visit @ 0x180008684
// > cocos2d::CCPrettyPrinter::visit @ 0x180008b8b
// > cocos2d::CCPrettyPrinter::visit @ 0x180008c6e
// > cocos2d::CCPrettyPrinter::visit @ 0x180008d41
// > cocos2d::CCPrettyPrinter::visitObject @ 0x180009470
// > cocos2d::CCEGLView::initWithRect @ 0x1800773ca
// > cocos2d::CCUserDefault::setDoubleForKey @ 0x18009f454
// > cocos2d::CCUserDefault::setIntegerForKey @ 0x18009f58f
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1594
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1698
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1ecb
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1fc0
// > cocos2d::CCDirector::showFPSLabel @ 0x1800bfe11
// > cocos2d::CCDirector::showStats @ 0x1800bfeac
// > sub_1800DBAE0 @ 0x1800dbb98
// > sub_1800DBDF0 @ 0x1800dbefa
// > sub_1800DC050 @ 0x1800dc0a2
// > sub_1800DC1C0 @ 0x1800dc5d3
// > sub_1800DC1C0 @ 0x1800dc63d
// > ??> @ 0x1801adc54
//
// 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 sub_180009530(char *Buffer, char *Format, ...)
{
_QWORD *v4; // rax
int result; // eax
va_list va; // [rsp+60h] [rbp+18h] BYREF
va_start(va, Format);
v4 = sub_180009520();
result = _stdio_common_vsprintf(*v4 | 1LL, Buffer, 0xFFFFFFFFFFFFFFFFuLL, Format, nullptr, va);
if ( result < 0 )
return -1;
return result;
}