//
// cocos2d::CCString::initWithFormatAndValist from 0x1800107a0 to 0x180010833 (147 bytes)
//
// 5 xrefs:
// > cocos2d::CCString::createWithFormat @ 0x1800106db
// > cocos2d::CCString::initWithFormat @ 0x180010796
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b81e8
// > ??> @ 0x1801b81f4
//
// 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:21:22 +0000
//
bool __fastcall cocos2d::CCString::initWithFormatAndValist(void **this, const char *a2, va_list a3)
{
char *v6; // rax
char *v7; // rbx
_QWORD *v8; // rax
size_t v9; // rax
v6 = (char *)malloc(0x19000u);
v7 = v6;
if ( v6 )
{
v8 = sub_1800095E0();
_stdio_common_vsprintf(*v8 | 2LL, v7, 0x19000u, a2, nullptr, a3);
v9 = strlen(v7);
sub_1800101E0(this + 7, v7, v9);
free(v7);
LOBYTE(v6) = 1;
}
return (char)v6;
}