//
// cocos2d::CCString::initWithFormatAndValist from 0xad3634 to 0xad36d8 (164 bytes)
//
// 3 xrefs:
// > cocos2d::CCString::initWithFormat @ 0xad3794
// > cocos2d::CCString::createWithFormat @ 0xad3bc8
// > ??> @ 0x77b38
//
// 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
//
__int64 __fastcall cocos2d::CCString::initWithFormatAndValist(cocos2d::CCString *this, const char *a2, _QWORD *a3)
{
char *v5; // x0
char *v6; // x19
__int64 v7; // x7
__int64 v8; // x4
__int64 v9; // x5
size_t v10; // x0
_QWORD arg[4]; // [xsp+40h] [xbp+40h] BYREF
v5 = (char *)malloc(0x19000u);
v6 = v5;
if ( !v5 )
return 0;
v7 = a3[1];
v8 = a3[2];
v9 = a3[3];
arg[0] = *a3;
arg[1] = v7;
arg[2] = v8;
arg[3] = v9;
vsnprintf(v5, 0x19000u, a2, arg);
v10 = strlen(v6);
sub_D1798C(&this->m_sString, v6, v10);
free(v6);
return 1;
}