//
// cocos2d::CCString::initWithFormatAndValist from 0xd46804 to 0xd468a8 (164 bytes)
//
// 3 xrefs:
// > cocos2d::CCString::initWithFormat @ 0xd46948
// > cocos2d::CCString::createWithFormat @ 0xd46a50
// > ??> @ 0xa0438
//
// This function is hookable on this platform (idp: arm, 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 13:07:34 +0000
//
__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);
std::string::assign((__int64 *)this + 7, v6, v10);
free(v6);
return 1;
}